forked from madmis/kunaio-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconsole.php
More file actions
21 lines (17 loc) · 676 Bytes
/
console.php
File metadata and controls
21 lines (17 loc) · 676 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env php
<?php
require __DIR__ . '/vendor/autoload.php';
use Symfony\Component\Console\Application;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
use Symfony\Component\Config\FileLocator;
use madmis\KunaBot\Command\BotCommand;
$container = new ContainerBuilder();
$loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/config'));
$loader->load('config.yml');
$loader->load('services.yml');
$application = new Application('Kuna.io Trading Bot', 'v0.0.1');
$command = new BotCommand();
$command->setContainer($container);
$application->add($command);
$application->run();