igorcarvalho / silex-console-service-provider
Use the console like all commands into Symfony\Console
Installs: 51
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
pkg:composer/igorcarvalho/silex-console-service-provider
Requires
- php: >=5.3
- symfony/console: 2.6.*@dev
This package is not auto-updated.
Last update: 2025-10-21 08:08:13 UTC
README
This packaget provides a Symfony\Component\Console to the Silex base at version 2.0.*
Install
Put in the igor822/silex-console-service-provider in your composer.json and register the service:
$app->register(new \Carvinc\Provider\ConsoleServiceProvider(), [ 'console.name' => 'Test', 'console.version' => '0.0.1' ]);
Usage
Use the console like all commands into Symfony\Console:
$ ./console command
Add Command
All your Command Classes should extend Carvinc\Command\Command to have access of Silex\Application by following method
getSilexApplication, which returns the Application