Skip to content

Commit

Permalink
example added
Browse files Browse the repository at this point in the history
  • Loading branch information
mkorkmaz committed May 30, 2017
1 parent fad18f0 commit 14c76ec
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions example/bin/console
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env php
<?php
declare(strict_types=1);

require_once (__DIR__ . '/../../vendor/autoload.php');
require_once (__DIR__ . '/../../tests/resources/Command/OrdinaryCommand.php');

use Selami\Console\ApplicationFactory;
use Zend\ServiceManager\ServiceManager;

$container = new ServiceManager();
$container->setService(
'commands', [
SelamiConsoleTest\Command\OrdinaryCommand::class
]
);
$container->setService('config', ['lang' => 'English']);

$cli = ApplicationFactory::makeApplication($container);
$cli->run();

0 comments on commit 14c76ec

Please sign in to comment.