mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-07-19 07:41:39 +02:00
18 lines
501 B
PHP
18 lines
501 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 Product();
|
|
$product->setName("foobar");
|
|
|
|
$entityManager->persist($product);
|
|
$entityManager->flush();
|
|
|
|
render_demo_page(); |