1
|
<?php
|
2
|
|
3
|
require __DIR__ . '/../vendor/autoload.php';
|
4
|
|
5
|
$configurator = new Nette\Configurator;
|
6
|
|
7
|
|
8
|
$configurator->setDebugMode(TRUE); // enable for your remote IP
|
9
|
$configurator->enableTracy(__DIR__ . '/../log');
|
10
|
$configurator->setTempDirectory(__DIR__ . '/../temp');
|
11
|
|
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
|
$configurator->addConfig(__DIR__ . '/config/model.neon');
|
21
|
$configurator->addConfig(__DIR__ . '/config/components.neon');
|
22
|
|
23
|
$container = $configurator->createContainer();
|
24
|
|
25
|
return $container;
|