/** * Create a new instance and set Request and matcher variables * * @param Request|null $request the instance of anonym request */ public function __construct(Request $request = null) { $this->setRequest($request); $this->setAccess(AccessBag::getAccesses()); $this->setDefaultFilters(); $this->setMatcher(new NewMatcher($this->getRequest()->getUrl(), null, FilterBag::getFilters())); $this->setActionDispatcher(new ActionDispatcher($this->getNamespace(), $this->getAccess(), $this->getRequest())); }