name = $name; $this->options = $options; $this->dependencies = $dependencies; $spec = new Core\Configuration\Application(); $parser = new Core\Configuration\Parser\Yaml(); $handler = new Core\Configuration\Handler($spec, $parser); $this->configuration = new Core\Configuration($handler); } protected function getDependency($name) { if(!array_key_exists($name, $this->dependencies)) { throw new \Exception(sprintf("Unknow dependency %s for %s service ", $name, $this->name)); } return $this->dependencies[$name]; } /** * * @return Array */ protected function getConfiguration() { return $this->configuration; } /** * * @return Array */ public function getDependencies() { return $this->dependencies; } /** * * @return string */ public function getName() { return $this->name; } /** * * @return Array */ public function getOptions() { return $this->options; } /** * * @return string */ public function getVersion() { return ''; } }