예제 #1
0
 /**
  * @param ViewHelperInterface $viewHelper
  * @return void
  */
 protected function injectDependenciesIntoViewHelper(ViewHelperInterface $viewHelper)
 {
     $viewHelper->setRenderingContext($this->renderingContext);
     $viewHelper->setArguments($this->arguments);
     // this condition is needed, because the (Be)/Security\*ViewHelper don't extend the
     // AbstractViewHelper and contain no method injectReflectionService()
     if ($viewHelper instanceof AbstractViewHelper) {
         $reflectionServiceProphecy = $this->prophesize(ReflectionService::class);
         $viewHelper->injectReflectionService($reflectionServiceProphecy->reveal());
     }
 }