-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathimportSheet.php
More file actions
26 lines (18 loc) · 776 Bytes
/
Copy pathimportSheet.php
File metadata and controls
26 lines (18 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
require_once ('autoload.php');
require_once ('error_handler.php');
use Symfony\Component\Console\Application;
use \Config\Config;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
$container = new ContainerBuilder();
$loader = new YamlFileLoader($container, new FileLocator(__DIR__ . "/Config/Services"));
$loader->load('services.yml');
Config::setContainer($container);
$application = new Application();
$application->setDispatcher(Config::getContainer()->get('dispatcher'));
$application->add(new \Command\ImportCommand());
$application->add(new \Command\DeleteCommand());
$application->add(new \Command\UpdateCommand());
$application->run();