1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-27 08:10:08 +00:00

Add support for Symfony Client

Symfony has a new [Symfony Client](https://github.com/symfony/cli), which is a binary called `symfony`.
You can use `symfony console` the same way as the old way with `php bin/console` with an incredible difference: It loads a local `php.ini`. [docs](https://symfony.com/doc/current/setup/symfony_server.html#overriding-php-config-options-per-project)
This commit is contained in:
Manuel Transfeld 2019-05-28 18:19:00 +02:00 committed by GitHub
parent 9930dd6e49
commit c1bf209462
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,13 @@
# Symfony2 basic command completion
_symfony_console () {
echo "php $(find . -maxdepth 2 -mindepth 1 -name 'console' -type f | head -n 1)"
if [ -x symfony ]; then
echo "./symfony console"
else if command -v symfony >/dev/null 2>&1; then
echo "$(command -v symfony) console"
else
echo "php $(find . -maxdepth 2 -mindepth 1 -name 'console' -type f | head -n 1)"
fi
}
_symfony2_get_command_list () {