Ejemplo n.º 1
0
 /**
  * @param bool $boot
  * @return Container|ContainerBuilder
  */
 public function rebuildDIC(bool $boot = true) : Container
 {
     $containerBuilder = new ContainerBuilder();
     $this->readAnnotations($containerBuilder);
     $containerBuilder->addCompilerPass(new GlobalCompilerPass());
     $containerBuilder->compile();
     $this->dumpContainer($containerBuilder);
     if ($boot) {
         $core = new Core();
         return $core->boot();
     }
     return $containerBuilder;
 }
Ejemplo n.º 2
0
<?php

use BrainExe\Core\Core;
require_once __DIR__ . '/../vendor/autoload.php';
define('ROOT', realpath(__DIR__ . "/..") . '/');
$core = new Core();
$core->boot();
Ejemplo n.º 3
0
<?php

use BrainExe\Core\Core;
require_once __DIR__ . '/../vendor/autoload.php';
define('ROOT', realpath(__DIR__ . '/..') . '/');
$core = new Core();
return $core->boot();