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