/** * * @param InjectorInterface $injector * @return mixed */ protected function getInstance(InjectorInterface $injector) { $name = $this->aliasClassReflection->getName(); $nameValueMap = $this->getNameValueMap(); $definitionArray = $this->getDefinitionArray(); return $injector->create($name, $nameValueMap, $definitionArray); }
/** * * @param InjectorInterface $injector * @return mixed */ protected function getInstance(InjectorInterface $injector) { $nameValueMap = $this->getNameValueMap(); $definitionArray = $this->getDefinitionArray(); return $injector->call($this->callable, $nameValueMap, $definitionArray); }