Symfony command line shortcut.
mv sf.sh sf
chmod +x sf
Instead of using php app/console cache:clear
use this:
$> sf cache:clear
#!/bin/bash
# Expand globs to null when there are no matches
shopt -s nullglob
# Look for either a ‘/console’ or a ‘symfony’ file
until
file=(app/console symfony); [[ -f "$file" ]] && php "$file" "$@" && exit;
do
[[ "$PWD" == "/" ]] && break;
cd ..
done
echo "No Symfony file found!"