1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-02-21 07:42:25 +01:00

19 lines
507 B
PHP

<?php
include __DIR__ . '/bootstrap.php';
include __DIR__ . '/../../bootstrap.php';
$debugbarRenderer->setBaseUrl('../../../src/DebugBar/Resources');
$debugStack = new Doctrine\DBAL\Logging\DebugStack();
$entityManager->getConnection()->getConfiguration()->setSQLLogger($debugStack);
$debugbar->addCollector(new DebugBar\Bridge\DoctrineCollector($debugStack));
$product = new Demo\Product();
$product->setName("foobar");
$entityManager->persist($product);
$entityManager->flush();
render_demo_page();