public function get(LocatorInterface $locator) { $arguments = []; if (!empty($this->constructArgumentNames)) { foreach ($this->constructArgumentNames as $name) { $arguments[] = $locator->get($name); } } return $this->class->newInstanceArgs($arguments); }
public function get(LocatorInterface $locator) { return $locator->get($this->name); }