This is fork of borNfreee/CommandRunnerBundle. I fixed the issue with wrong work of non-value command parameters.
Executes Symfony2 console command from Controller (HTTP request).
This bundle is available on Packagist:
To install it, run:
$ composer require mrafalko/command-runner-bundle:dev-master
Then add the bundle to app/AppKernel.php
:
public function registerBundles()
{
return array(
...
new Mrafalko\CommandRunnerBundle\MrafalkoCommandRunnerBundle(),
...
);
}
Then import routing file:
# app/config/routing.yml
mrafalko_command_runner:
resource: "@MrafalkoCommandRunnerBundle/Controller/CommandRunnerController.php"
type: annotation
prefix: /
Run the command from your URL: