We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ed0c9f commit 807da75Copy full SHA for 807da75
phpactor.el
@@ -77,8 +77,12 @@
77
;; Utility functions
78
(defun phpactor-find-executable ()
79
"Return Phpactor command or path to executable."
80
- (or phpactor-executable
81
- (executable-find phpactor-command-name)))
+ (or (when phpactor-executable
+ (php-project--eval-bootstrap-scripts phpactor-executable))
82
+ (executable-find phpactor-command-name)
83
+ (let ((vendor-executable (f-join (phpactor-get-working-dir) "vendor/bin/phpactor")))
84
+ (when (file-exists-p vendor-executable)
85
+ vendor-executable))))
86
87
(defun phpactor-get-working-dir ()
88
"Return working directory of Phpactor."
0 commit comments