0
でプロファイラのツールバーを取得します:バンドルはデモ私はデモ環境でのSymfony 3.1プロファイラのツールバー</p> <p>AppKernel.phpを取得するために管理していないデモ
if (in_array($this->getEnvironment(), ['dev', 'demo'], true)) {
$bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle();
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
$bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
$bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
$bundles[] = new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle();
}
config_demo.ymlのために有効になっている
framework:
router:
resource: "%kernel.root_dir%/config/routing_demo.yml"
strict_requirements: true
profiler: false
web_profiler:
toolbar: true
intercept_redirects: false
app_demo.php
$loader = require __DIR__.'/../app/autoload.php';
Debug::enable();
$kernel = new AppKernel('demo', true);
$kernel->loadClassCache();
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
routing_demo.yml
_wdt:
resource: "@WebProfilerBundle/Resources/config/routing/wdt.xml"
prefix: /_wdt
_profiler:
resource: "@WebProfilerBundle/Resources/config/routing/profiler.xml"
prefix: /_profiler
、はい、私は私のホーム・ページに
をbodyタグを持っている私は何をしないのですか? おかげ