Пример #1
0
 public function configureServices()
 {
     $servicesFile = $this->getAppConfig()['core']['configDir'] . $this->getAppConfig()['core']['servicesFile'];
     $serviceParser = new ServiceParser($servicesFile);
     $serviceParser->loadServices()->loadControllers($this->getControllers())->parse();
     // Sets up the Validator service provider
     $this->register(new ValidatorServiceProvider());
     return $this;
 }
Пример #2
0
 /**
  * @expectedException \Flint\Exception\InvalidServicesFileException
  */
 public function testInvalidServiceFileThrowsException()
 {
     $parser = new ServiceParser('blah');
     $parser->loadServices();
 }