-
-
Save wlalele/5e3fa0cdeab228c847f2fdbd256f500b to your computer and use it in GitHub Desktop.
Symfony CLI shortcut for all versions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ARGS=$* | |
function checkSf { | |
if [ -f $1 ]; | |
then | |
php $1 $ARGS | |
fi | |
} | |
checkSf symfony # symfony 1.* | |
checkSf app/console # symfony 2.* | |
checkSf bin/console # symfony 3.* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment