CoreFiles by mySites.guru
bootstrap.php22 lines, 738 bytes, from Joomla_4.1.4-rc1-Release_Candidate-Full_Package.zip
Raw History Compare with 4.1.3-rc1
md5
2134e1460cc67a43bca1438f4782587b
sha1
055ab273201465bcf33cd861d20bd725e77e7dca
sha256
bafcf97860fdb369fccb2acdef9c89b18790372204628a6f3ccf2f3a7baee4b5
<?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);

The same content is in 3 releases, Joomla 4.1.3-rc1 to 4.1.4-rc1. See them all, or every version of this file.