Beispiel #1
0
 /**
  * Method will automatically mount requested uses is any.
  *
  * @param RenderableInterface $element
  * @return $this
  * @throws Exceptions\ReactorException
  */
 public function addElement(RenderableInterface $element)
 {
     $this->elements->add($element);
     if ($element instanceof DependedInterface) {
         $this->addUses($element->getDependencies());
     }
     return $this;
 }