Error running Process in symfony Error running Process in symfony symfony symfony

Error running Process in symfony


Looks like you are using Symfony 3.0 that has "finally" https://github.com/symfony/symfony/blob/3.0/src/Symfony/Component/DependencyInjection/Container.php#L282

PHP 5.5 and later has support for "finally" in try/catch blocks.http://php.net/manual/en/language.exceptions.php

And looks like your php version is less then 5.5, so upgrade your php version > 5.5 and it will work


$process = new Process("php /Users/Name/Sites/App/app/../bin/console cache:clear --env=prod");$process->run();

You should try

$process = new Process("php /Users/Name/Sites/App/app/console cache:clear --env=prod"); $process->run();

Because console is in app/ directory and not in bin/