Пример #1
0
 /**
  * Register a new Boyhagemann\Form\Element interface to the element
  * container.
  *
  * If the element already exists, then this element will not be registered.
  *
  * @param string $name
  * @param string|Element $element
  * @return $this
  */
 public function register($name, $element)
 {
     $this->container->bindIf($name, $element);
     return $this;
 }