Ejemplo n.º 1
0
 public function __construct(ViewInterface $view, ExpressViewHelperManagerInterface $helpers, ExpressionContextFactoryInterface $contextFactory, ExpressViewFactory $factory)
 {
     parent::__construct($view);
     $this->factory = $factory;
     $this->helpers = $helpers;
     $this->expressionContextFactory = new ExpressionContextFactory($contextFactory);
     $this->expressionContextFactory->setDefaultAccessPolicy(ExpressionContextInterface::ACCESS_POLICY_RETURN_NULL);
     $this->expressionContextFactory->registerExtension($this);
 }
Ejemplo n.º 2
0
 public function __construct(ViewInterface $view, ExpressionContextFactoryInterface $factory = NULL)
 {
     parent::__construct($view);
     $this->factory = $factory;
 }