mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 21:41:07 +01: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:
parent
9930dd6e49
commit
c1bf209462
1 changed files with 7 additions and 1 deletions
|
@ -1,7 +1,13 @@
|
||||||
# Symfony2 basic command completion
|
# Symfony2 basic command completion
|
||||||
|
|
||||||
_symfony_console () {
|
_symfony_console () {
|
||||||
|
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)"
|
echo "php $(find . -maxdepth 2 -mindepth 1 -name 'console' -type f | head -n 1)"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
_symfony2_get_command_list () {
|
_symfony2_get_command_list () {
|
||||||
|
|
Loading…
Reference in a new issue