Skip to content

Commit fed223b

Browse files
kermorgantzonuexe
authored andcommitted
add support for generate_method refactoring (#97)
1 parent 343020e commit fed223b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

phpactor.el

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,13 @@ function."
741741
(let ((arguments (phpactor--command-argments :path :offset :source)))
742742
(apply #'phpactor-action-dispatch (phpactor--rpc "generate_accessor" arguments))))
743743

744+
;;;###autoload
745+
(defun phpactor-generate-method ()
746+
"Execute Phpactor RPC generate_method action."
747+
(interactive)
748+
(let ((arguments (phpactor--command-argments :path :offset :source)))
749+
(apply #'phpactor-action-dispatch (phpactor--rpc "generate_method" arguments))))
750+
744751
;;;###autoload
745752
(defun phpactor-add-missing-assignments ()
746753
"Execute Phpactor RPC add_missing_assignments action."

0 commit comments

Comments
 (0)