Beispiel #1
0
<?php

use Aspect\DemoAspectKernel;
// Prevent an error about nesting level
ini_set('xdebug.max_nesting_level', 500);
include __DIR__ . '/init_autoloader.php';
// Initialize demo aspect container
DemoAspectKernel::getInstance()->init(array('debug' => true, 'appDir' => __DIR__, 'cacheDir' => __DIR__ . '/data/cache/aspect', 'excludePaths' => array(__DIR__ . '/data/cache/aspect')));
Beispiel #2
0
<?php

use Aspect\DemoAspectKernel;
// include __DIR__ . '/vendor/autoload.php';
require __DIR__ . '/bootstrap/autoload.php';
// Prevent an error about nesting level
ini_set('xdebug.max_nesting_level', 300);
// Initialize aspect container
$aspectKernel = DemoAspectKernel::getInstance();
$aspectKernel->init(array('cacheDir' => __DIR__ . '/app/storage/cache/aspect/', 'debug' => true));