Пример #1
0
 /**
  * {@inheritDoc}
  */
 public function integrate(Aurex $aurex)
 {
     $aurex->register(new TwigServiceProvider(), ['cache' => __DIR__ . '/../../../Application/Cache/Twig', 'twig.path' => __DIR__ . '/../../../../../web/templates', 'twig.options' => ['debug' => (string) ($aurex->getEnvironment() === "dev") ? true : false]]);
     $this->addAssetFunction($aurex);
     $aurex->getInjector()->share($aurex['twig']);
     $aurex->getInjector()->share($aurex['url_generator']);
 }
Пример #2
0
 /**
  * Unnecessarily aiming for 100% code coverage here
  */
 public function testEnvironmentGetterWorksInAurex()
 {
     $aurex = new Aurex($env = $this->factory->create('dev'), new Injector(), []);
     $this->assertSame($env, $aurex->getEnvironment());
 }