コード例 #1
0
ファイル: index.php プロジェクト: r-bruha/nette-generator
 /** @tracySkipLocation */
 function timerDump($var = NULL, $title = NULL, $options = [])
 {
     Tracy\Debugger::barDump(Tracy\Debugger::timer($var), $title, $options);
 }
コード例 #2
0
ファイル: bootstrap.php プロジェクト: soundake/pd
<?php

use Nette\Forms\Container;
setlocale(LC_ALL, 'cs_CZ.UTF-8');
//require LIBS_DIR . '/libs/nette.phar';
require __DIR__ . '/../vendor/autoload.php';
// Configure application
Tracy\Debugger::timer();
Tracy\Debugger::$editor = "pstorm://open/?url=file://%file&line=%line";
/* @var $configurator \Nette\Configurator */
$configurator = new \Nette\Configurator();
// Enable Nette Debugger for error visualisation & logging
$configurator->setDebugMode(array("localhost", "peknyden.soundake.com", "pd-0613.rostiapp.cz"));
$configurator->enableDebugger(__DIR__ . '/../log', "*****@*****.**");
// Enable RobotLoader - this will load all classes automatically
$configurator->setTempDirectory(__DIR__ . '/../temp');
$configurator->createRobotLoader()->addDirectory(APP_DIR)->register();
// Create Dependency Injection container from config.neon file
switch ($_SERVER['SERVER_NAME']) {
    case "pd-0613.rostiapp.cz":
        $environment = "preview";
        break;
    case "peknyden.cz":
    case "www.peknyden.cz":
        $environment = "production";
        break;
    default:
        $environment = "development";
        break;
}
$configurator->addConfig(__DIR__ . '/config/config.neon', $environment);