Skip to content

Commit

Permalink
Merge pull request #488 from emacs-php/feature/project-workflow-variable
Browse files Browse the repository at this point in the history
Add php-project variables for some workflow
  • Loading branch information
zonuexe authored Dec 5, 2018
2 parents 7825fcb + a9ee3af commit 70e1cc1
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions php-project.el
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,51 @@ defines constants, and sets the class loaders.")
Typically it is `pear', `drupal', `wordpress', `symfony2' and `psr2'.")
(put 'php-project-coding-style 'safe-local-variable #'symbolp))

;;;###autoload
(progn
(defvar php-project-repl nil
"Function name or path to REPL (interactive shell) script.")
(make-variable-buffer-local 'php-project-repl)
(put 'php-project-repl 'safe-local-variable
#'(lambda (v) (or (functionp v)
(php-project--eval-bootstrap-scripts v)))))

;;;###autoload
(progn
(defvar php-project-unit-test nil
"Function name or path to unit test script.")
(make-variable-buffer-local 'php-project-unit-test)
(put 'php-project-unit-test 'safe-local-variable
#'(lambda (v) (or (functionp v)
(php-project--eval-bootstrap-scripts v)))))

;;;###autoload
(progn
(defvar php-project-deploy nil
"Function name or path to deploy script.")
(make-variable-buffer-local 'php-project-deploy)
(put 'php-project-deploy 'safe-local-variable
#'(lambda (v) (or (functionp v)
(php-project--eval-bootstrap-scripts v)))))

;;;###autoload
(progn
(defvar php-project-build nil
"Function name or path to build script.")
(make-variable-buffer-local 'php-project-build)
(put 'php-project-build 'safe-local-variable
#'(lambda (v) (or (functionp v)
(php-project--eval-bootstrap-scripts v)))))

;;;###autoload
(progn
(defvar php-project-server-start nil
"Function name or path to server-start script.")
(make-variable-buffer-local 'php-project-server-start)
(put 'php-project-server-start 'safe-local-variable
#'(lambda (v) (or (functionp v)
(php-project--eval-bootstrap-scripts v)))))


;; Functions

Expand Down

0 comments on commit 70e1cc1

Please sign in to comment.