nicolasdewez / application-console
This library provides use console application
Installs: 20
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- symfony/config: ~2.1|~3.0.0
- symfony/console: ~2.1|~3.0.0
- symfony/dependency-injection: ~2.1|~3.0.0
This package is not auto-updated.
Last update: 2024-05-25 15:51:27 UTC
README
The ApplicationConsoleBundle
provides use console application with container in application and commands.
Installation
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
$ composer require nicolasdewez/application-console
This command requires you to have Composer installed globally, as explained
in the installation chapter
_ of the Composer documentation.
Using
Create an application file console.
use App\Command\MyCommand; use Ndewez\ApplicationConsoleBundle\Application\Application; $application = new Application(__DIR__.'/config/services.xml'); $application->addContainerCommand(new MyCommand()); $application->run();