mrafalko / command-runner-bundle
Executes symfony console command from a Controller.
Installs: 306
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 1
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2024-12-21 17:43:21 UTC
README
Executes Symfony2 console command from Controller (HTTP request).
Installation
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: /
Examples
Run the command from your URL: