berny/console-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

Simple integration for Symfony/Console into Symfony/HttpKernel based applications

0.1.0 2013-06-06 18:53 UTC

This package is not auto-updated.

Last update: 2024-02-26 11:26:59 UTC


README

Simple integration for Symfony/Console into Symfony/HttpKernel based applications

Installation

With composer/packagist

  • Add "berny/console-bundle": "*" to your composer.json file

  • Run composer update berny/console-bundle

  • Add the following bundles to your Kernel:

      new \Berny\Bundle\TagBundle\TagBundle(),
      new \Berny\Bundle\Console\ConsoleBundle(),
    
  • Now you can get the console with $kernel->getContainer()->get('console')

Commands

You can add Commands automatically to the Console by tagging them in your bundle with the console.command tag.