diff --git a/modules/lang/php/autoload.el b/modules/lang/php/autoload.el index edba22ea0..b2acc09e4 100644 --- a/modules/lang/php/autoload.el +++ b/modules/lang/php/autoload.el @@ -13,3 +13,14 @@ ignore the cache." (require 'json) (json-read-file package-file))) (puthash project-root data +php-composer-conf)))))) + +;; +;;; Commands + + +;;;###autoload +(defun +php/open-repl () + "Open PHP REPL." + (interactive) + (psysh) + (pop-to-buffer (current-buffer))) diff --git a/modules/lang/php/config.el b/modules/lang/php/config.el index a9daf488d..47cf2b73c 100644 --- a/modules/lang/php/config.el +++ b/modules/lang/php/config.el @@ -28,7 +28,7 @@ (setq php-mode-template-compatibility nil) (set-docsets! 'php-mode "PHP" "PHPUnit" "Laravel" "CakePHP" "CodeIgniter" "Doctrine_ORM") - (set-repl-handler! 'php-mode #'php-boris) + (set-repl-handler! 'php-mode #'+php/open-repl) (set-lookup-handlers! 'php-mode :documentation #'php-search-documentation) (set-formatter! 'php-mode #'php-cs-fixer-fix) (set-ligatures! 'php-mode diff --git a/modules/lang/php/packages.el b/modules/lang/php/packages.el index 8186e8654..2cfdb90d1 100644 --- a/modules/lang/php/packages.el +++ b/modules/lang/php/packages.el @@ -1,7 +1,7 @@ ;; -*- no-byte-compile: t; -*- ;;; lang/php/packages.el -(package! php-boris :pin "f2faebf610c917f7091f7ec0cd97645629c4f819") +(package! psysh :pin "21250984ad8137aa3440ac12e52475ef03f19fcb") (package! php-extras :recipe (:host github :repo "arnested/php-extras") :pin "d410c5af663c30c01d461ac476d1cbfbacb49367")