示例#1
0
 /**
  * Application Constructor
  */
 public function __construct()
 {
     $dependency = new DiExtension(__DIR__ . '/DependencyInjection/config/');
     try {
         $this->setDic($dependency->getContainer());
     } catch (\Exception $e) {
         return $e->getMessage();
     }
     $this->dispatcher = $this->getDic()->get('revpdflib.event_dispatcher');
 }
示例#2
0
 /**
  * @covers RevPDFLib\DependencyInjection\DiExtension::getContainer
  * @todo Implement testGetContainer().
  */
 public function testGetContainer()
 {
     $this->assertTrue($this->object->getContainer() instanceof \Symfony\Component\DependencyInjection\ContainerBuilder);
 }