mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-06-11 00:21:16 +02:00
23 lines
738 B
PHP
23 lines
738 B
PHP
<?php
|
|
// bootstrap.php
|
|
use Doctrine\ORM\Tools\Setup;
|
|
use Doctrine\ORM\EntityManager;
|
|
|
|
require_once "vendor/autoload.php";
|
|
|
|
// Create a simple "default" Doctrine ORM configuration for Annotations
|
|
$isDevMode = true;
|
|
$config = Setup::createAnnotationMetadataConfiguration(array(__DIR__."/src"), $isDevMode);
|
|
// or if you prefer yaml or XML
|
|
//$config = Setup::createXMLMetadataConfiguration(array(__DIR__."/config/xml"), $isDevMode);
|
|
//$config = Setup::createYAMLMetadataConfiguration(array(__DIR__."/config/yaml"), $isDevMode);
|
|
|
|
// database configuration parameters
|
|
$conn = array(
|
|
'driver' => 'pdo_sqlite',
|
|
'path' => __DIR__ . '/db.sqlite',
|
|
);
|
|
|
|
// obtaining the entity manager
|
|
$entityManager = EntityManager::create($conn, $config);
|