name = $name; $this->options = $options; $spec = new Core\Configuration\Application(); $parser = new Core\Configuration\Parser\Yaml(); $handler = new Core\Configuration\Handler($spec, $parser); $this->configuration = new Core\Configuration($handler); } /** * * @return Core\Configuration */ protected function getConfiguration() { return $this->configuration; } /** * * @return string */ public function getName() { return $this->name; } /** * * @return Array */ public function getOptions() { return $this->options; } /** * * @return string */ public function getVersion() { return ''; } /** * * @param type $serviceName * @param type $serviceScope * @return ServiceInterface */ protected function findService($serviceName, $serviceScope, ParameterBag $configuration, $namespace = null) { return Core\ServiceBuilder::build( $serviceName , $serviceScope , $configuration , $namespace ); } }