Пример #1
0
<?php

use Symfony\Component\HttpFoundation\Request;
$loader = (require_once __DIR__ . '/../vendor/autoload.php');
\AutoTune\Tuner::init($loader);
$app = (require_once __DIR__ . '/../app/bootstrap.php');
$request = Request::createFromGlobals();
$app->run($request);
Пример #2
0
<?php

$loader = (require_once __DIR__ . '/../vendor/autoload.php');
if (class_exists('AutoTune\\Tuner')) {
    \AutoTune\Tuner::init($loader, __DIR__ . '/..');
}
$logger = new \Monolog\Logger('example');
var_dump($logger);