1 |
67c41231
|
Filip Jani
|
<?php
|
2 |
|
|
|
3 |
|
|
require __DIR__ . '/../vendor/autoload.php';
|
4 |
|
|
|
5 |
|
|
$configurator = new Nette\Configurator;
|
6 |
|
|
|
7 |
ae9dc1f5
|
Filip Jani
|
|
8 |
|
|
$configurator->setDebugMode(TRUE); // enable for your remote IP
|
9 |
|
|
$configurator->enableTracy(__DIR__ . '/../log');
|
10 |
|
|
$configurator->setTempDirectory(__DIR__ . '/../temp');
|
11 |
67c41231
|
Filip Jani
|
|
12 |
|
|
$configurator->setTimeZone('Europe/Prague');
|
13 |
|
|
|
14 |
|
|
$configurator->createRobotLoader()
|
15 |
|
|
->addDirectory(__DIR__)
|
16 |
|
|
->register();
|
17 |
|
|
|
18 |
|
|
$configurator->addConfig(__DIR__ . '/config/config.neon');
|
19 |
|
|
$configurator->addConfig(__DIR__ . '/config/config.local.neon');
|
20 |
ee62b2c5
|
Filip Jani
|
$configurator->addConfig(__DIR__ . '/config/model.neon');
|
21 |
dd522430
|
Filip Jani
|
$configurator->addConfig(__DIR__ . '/config/components.neon');
|
22 |
67c41231
|
Filip Jani
|
|
23 |
|
|
$container = $configurator->createContainer();
|
24 |
|
|
|
25 |
|
|
return $container;
|