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