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; }
/** * @expectedException \Flint\Exception\InvalidServicesFileException */ public function testInvalidServiceFileThrowsException() { $parser = new ServiceParser('blah'); $parser->loadServices(); }