X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=app%2Fbootstrap%2Frouter.php;h=f587ece854574942a8a47b06b44ef7c42bde4840;hb=82b3a99da8ac38202fbaec48e6688164f787d9ad;hp=50f2a3c830825223629373561e566a27924fdbd3;hpb=d4a4eae6b299ec3c066a4b8b68e048ddf69e0268;p=pharext%2Fpharext.org diff --git a/app/bootstrap/router.php b/app/bootstrap/router.php index 50f2a3c..f587ece 100644 --- a/app/bootstrap/router.php +++ b/app/bootstrap/router.php @@ -49,7 +49,9 @@ $injector->share(RouteCollector::class) $injector->share(Dispatcher::class) ->alias(Dispatcher::class, Dispatcher\GroupCountBased::class) - ->delegate(Dispatcher\GroupCountBased::class, function($class, Injector $injector) { - return new $class($injector->make(RouteCollector::class)->getData()); - }); + ->define(Dispatcher\GroupCountBased::class, [ + "+data" => function($name, Injector $injector) { + return $injector->make(RouteCollector::class)->getData(); + } + ]);