thephpleague / route

Fast PSR-7 based routing and dispatch component including PSR-15 middleware, built on top of FastRoute.
http://route.thephpleague.com
MIT License
651 stars 126 forks source link

RouteCollection missing from 4.x? #214

Closed alturic closed 6 years ago

alturic commented 6 years ago

I'm wondering if (doubtful) RouteCollection is missing from 4.x or if it no longer comes standard?

My AppServiceProvider used to share the collection on my container like:

$container = $this->getContainer();

$container->share(RouteCollection::class, function () use ($container) { return new RouteCollection($container); });

But that no longer seems possible, looking to see if I have to figure out how to do it now, or like I said, if RouteCollection is just missing.

philipobenito commented 6 years ago

It’s not missing, but it has been renamed to Router, please be aware that there are quite a few more changes in 4.x too.

Sent from my iPhone

On 12 Oct 2018, at 05:30, alturic notifications@github.com wrote:

I'm wondering if (doubtful) RouteCollection is missing from 4.x or if it no longer comes standard?

My AppServiceProvider used to share the collection on my container like:

` $container = $this->getContainer();

$container->share(RouteCollection::class, function () use ($container) { return new RouteCollection($container); }); `

But that no longer seems possible, looking to see if I have to figure out how to do it now, or like I said, if RouteCollection is just missing.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.