Пример #1
0
 /**
  * Component is not bound.
  *
  * @param ComponentInterface $component
  * @param string             $operation
  *
  * @return WorkflowException
  */
 public static function unboundComponent(ComponentInterface $component, $operation)
 {
     return new self(sprintf('"%s" component must be bound before %s operation.', $component->getName(), $operation));
 }
Пример #2
0
 /**
  * Renders a datagrid component.
  *
  * @param ComponentInterface $component
  * @param array              $options
  *
  * @return string
  */
 public function renderComponent(ComponentInterface $component, array $options = array())
 {
     return $component->render($this->renderer, $options);
 }