Esempio n. 1
0
 private function thenTheResultShouldBe($value)
 {
     $this->assert->isInstanceOf($this->result, ValueResult::class);
     $this->assert($this->result->getValue(), $value);
 }
Esempio n. 2
0
 protected function handleValueResult(ValueResult $result)
 {
     $value = $result->getValue();
     $renderer = $this->renderers->getRenderer($value);
     if ($renderer instanceof WebRenderer) {
         $this->headElements = $renderer->headElements($value);
     }
     $this->model['output'] = $renderer->render($value);
     if (!$this->action->isModifying()) {
         $this->crumbs->updateCrumbs($this->action, $this->actionId);
     }
 }