phpactor
phpactor copied to clipboard
[WIP] Laravel Blade
This pr is just to show the concept.
It uses the output of code written in https://github.com/haringsrob/laravel-dev-tools (a lsp on its own).
so in theory you could:
https://github.com/phpactor/phpactor/blob/f679c693cb5a1734da10a58a4bcefe3c2527a759/lib/Extension/Behat/BehatExtension.php#L55-L63
you could then (in the completor):
- change the language of the text document to "php"
- inject the container from which you could lazily get the entire completor (needed to avoid circular dep as it has a dep on this class)
not sure if this is the best approach, it would also be, I think, required to NOT depend on Laravel if at all possible (we already depend on PHPStan + Psalm for those extensions but not sure we should)
also nice to see that the Language Server package is used by at least one other thing :smile:
I still have to work on this. Might do it later today to make it into a core extension.
closing for now as stale, feel free to continue to discuss here