Introducing Profiler
This commit is contained in:
parent
12ff467a9b
commit
5e6e1a8025
24 changed files with 370 additions and 262 deletions
|
@ -19,9 +19,10 @@ $basedir = BasePath::create(__DIR__, $_SERVER);
|
|||
$configLoader = new Config\ConfigCacheLoader($basedir);
|
||||
$config = Factory\ConfigFactory::createCache($configLoader);
|
||||
$logger = Factory\LoggerFactory::create('index', $config);
|
||||
$profiler = Factory\ProfilerFactory::create($config);
|
||||
|
||||
// We assume that the index.php is called by a frontend process
|
||||
// The value is set to "true" by default in App
|
||||
$a = new App($config, $logger, false);
|
||||
$a = new App($config, $logger, $profiler, false);
|
||||
|
||||
$a->runFrontend();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue