* koin service and cli stuff added

This commit is contained in:
Danyi Dávid
2017-09-05 23:04:28 +02:00
parent 946d00ff93
commit 8184c1e07d
15 changed files with 801 additions and 55 deletions

18
bin/cli Executable file
View File

@@ -0,0 +1,18 @@
#!/usr/bin/php
<?php
chdir(__DIR__ . '/..');
require __DIR__ . '/../vendor/autoload.php';
use Symfony\Component\Console\Application;
/** @var \Interop\Container\ContainerInterface $container */
$container = require __DIR__ . '/../config/container.php';
$application = new Application('Application console');
$commands = $container->get('config')['console']['commands'];
foreach ($commands as $command) {
$application->add($container->get($command));
}
$application->run();