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