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);
 }
Esempio n. 2
0
 public function __construct(ViewInterface $view, ExpressionContextFactoryInterface $factory = NULL)
 {
     parent::__construct($view);
     $this->factory = $factory;
 }