1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-07-27 11:40:25 +02:00
Files
php-debugbar/demo/bridge/doctrine/cli-config.php
Barry vd. Heuvel e10a5f96af Add Doctrine
2024-03-31 20:12:58 +02:00

11 lines
336 B
PHP

<?php
// cli-config.php
require_once "bootstrap.php";
$em = $entityManager;
$helperSet = new \Symfony\Component\Console\Helper\HelperSet(array(
'db' => new \Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper($em->getConnection()),
'em' => new \Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper($em)
));
return $helperSet;