euskadi31/console-service-provider

A Console Service Provider for Silex 2.0

v1.0.2 2016-03-31 13:02 UTC

This package is not auto-updated.

Last update: 2024-12-21 20:36:02 UTC


README

Build Status SensioLabs Insight Coveralls HHVM Packagist

Install

Add euskadi31/console-service-provider to your composer.json:

% php composer.phar require euskadi31/console-service-provider:~1.0

Usage

Configuration

<?php

$app = new Silex\Application;

$app->register(new \Euskadi31\Silex\Provider\ConsoleServiceProvider(), [
    'console.options' => [
        'name' => 'Console',
        'version' => '1.2.3'
    ]
]);

$app['console']->add(new HelloCommand());

$code = $app['console']->run();

exit($code);

License

ConsoleServiceProvider is licensed under the MIT license.