Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/tests/phpstan/doctrine-orm-bootstrap.php

13 lines
319 B

<?php
use Chamilo\Kernel;
use Symfony\Component\Dotenv\Dotenv;
require __DIR__ . '/../../vendor/autoload.php';
(new Dotenv())->bootEnv(__DIR__ . '/../../.env');
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$kernel->boot();
return $kernel->getContainer()->get('doctrine')->getManager();