コード例 #1
0
 public function initialize()
 {
     date_default_timezone_set('Europe/Prague');
     Nette\Bridges\Framework\TracyBridge::initialize();
     $this->getService('events.manager')->createEvent(array('Nette\\DI\\Container', 'onInitialize'))->dispatch($this);
     Tracy\Debugger::$email = '*****@*****.**';
     Tracy\Debugger::$editor = 'sublime';
     Tracy\Debugger::$browser = 'chromium-browser';
     Tracy\Debugger::$strictMode = TRUE;
     Nette\Caching\Storages\FileStorage::$useDirectories = TRUE;
     $this->getByType("Nette\\Http\\Session")->exists() && $this->getByType("Nette\\Http\\Session")->start();
     header('X-Frame-Options: SAMEORIGIN');
     $this->getService('systemModule.initializer');
     $this->getService('usersModule.initializer');
     $this->getService('securityModule.initializer');
     header('X-Powered-By: Nette Framework');
     header('Content-Type: text/html; charset=utf-8');
     Nette\Utils\SafeStream::register();
     Nette\Reflection\AnnotationsParser::setCacheStorage($this->getByType("Nette\\Caching\\IStorage"));
     Nette\Reflection\AnnotationsParser::$autoRefresh = FALSE;
     Doctrine\Common\Annotations\AnnotationRegistry::registerLoader("class_exists");
     Kdyby\Doctrine\Diagnostics\Panel::registerBluescreen($this);
     Kdyby\Doctrine\Proxy\ProxyAutoloader::create('/home/fuca/Projects/www/sportsclub/tests/tmp/proxies', 'Kdyby\\GeneratedProxy')->register();
     Nette\Diagnostics\Debugger::getBlueScreen()->collapsePaths[] = '/home/fuca/Projects/www/sportsclub/vendor/kdyby/doctrine/src/Kdyby/Doctrine';
     Nette\Diagnostics\Debugger::getBlueScreen()->collapsePaths[] = '/home/fuca/Projects/www/sportsclub/vendor/doctrine';
     Nette\Diagnostics\Debugger::getBlueScreen()->collapsePaths[] = '/home/fuca/Projects/www/sportsclub/tests/tmp/proxies';
     Kdyby\Translation\Diagnostics\Panel::registerBluescreen();
     \Tracy\Debugger::setLogger($this->getService('monolog.adapter'));
 }
コード例 #2
0
 public function initialize()
 {
     date_default_timezone_set('Europe/Prague');
     Nette\Bridges\Framework\TracyBridge::initialize();
     Nette\Caching\Storages\FileStorage::$useDirectories = TRUE;
     $this->getByType("Nette\\Http\\Session")->exists() && $this->getByType("Nette\\Http\\Session")->start();
     header('X-Frame-Options: SAMEORIGIN');
     header('X-Powered-By: Nette Framework');
     header('Content-Type: text/html; charset=utf-8');
     Nette\Utils\SafeStream::register();
     Nette\Reflection\AnnotationsParser::setCacheStorage($this->getByType("Nette\\Caching\\IStorage"));
     Nette\Reflection\AnnotationsParser::$autoRefresh = TRUE;
 }