public function factory( EnlightEventManager
$eventManager,
iterable
$matchers,
iterable
$generators,
iterable
$preFilters,
iterable
$postFilters ) { $router =
new RoutingRouter( Context::
createEmpty(), // Request object will created on dispatch :/
$this->
convertIteratorToArray($matchers),
$this->
convertIteratorToArray($generators),
$this->
convertIteratorToArray($preFilters),
$this->
convertIteratorToArray($postFilters) );
/* Still better than @see \Shopware\Models\Shop\Shop::registerResources */
$eventManager->
addListener( 'Enlight_Bootstrap_AfterRegisterResource_Shop',
[$this, 'onAfterRegisterShop'
],
-100
);