igorcarvalho / silex-console-service-provider
Use the console like all commands into Symfony\Console
Package info
github.com/igorcarvalho/silex-console-service-provider
pkg:composer/igorcarvalho/silex-console-service-provider
1.0.0
2014-10-31 16:53 UTC
Requires
- php: >=5.3
- symfony/console: 2.6.*@dev
This package is not auto-updated.
Last update: 2026-02-24 09:50:04 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