Beispiel #1
0
 protected function setUp()
 {
     $configBuilder = new ConfigBuilder();
     $structure = new VariableStructure();
     $structure->doConfig($configBuilder);
     $structure = new PresenterStructure();
     $structure->doConfig($configBuilder);
     $xmlFileReader = new XmlFileReader(__DIR__ . '/../../Asset/Core/Config/config.xml');
     $configBuilder->addReader($xmlFileReader);
     $this->config = new Config($configBuilder->parse());
 }
 private function createConfigContainer()
 {
     $configBuilder = new ConfigBuilder();
     $structure = new ErrorStructure();
     $structure->doConfig($configBuilder);
     $structure = new PresenterStructure();
     $structure->doConfig($configBuilder);
     $xmlFileReader = new XmlFileReader(__DIR__ . '/../../Asset/Core/HTTPErrorHandler/config.xml');
     $configBuilder->addReader($xmlFileReader);
     return new Config($configBuilder->parse());
 }