Beispiel #1
0
 public function applyParent(Service $parent)
 {
     if (!$this->getClass()) {
         $this->setClass($parent->getClass());
     }
     $arguments = $this->getArguments();
     if (empty($arguments)) {
         $this->setArguments($parent->getArguments());
     }
     // prepend parent method calls
     foreach ($parent->getMethodCalls() as $methodCall) {
         array_unshift($this->methodCalls, $methodCall);
     }
 }