class Illuminate / Routing / AbstractRouteCollection
abstract

AbstractRouteCollection

Implements

Methods

protected

handleMatchedRoute ( Request $request , $route ) : Route

Handle the matched route.

Parameters

protected

checkForAlternateVerbs ( $request ) : array

Determine if any routes match on another HTTP verb.

Parameters

protected

matchAgainstRoutes ( array $routes , $request , $includingMethod ) : Route |null

Determine if a route in the array matches the request.

Parameters

  • $routes Illuminate\...\Route[]
  • $request Request
  • $includingMethod bool
protected

getRouteForMethods ( $request , array $methods ) : Route

Get a route (if necessary) that responds when other available methods are present.

Parameters

protected

requestMethodNotAllowed ( $request , array $others , $method ) : void

Throw a method not allowed HTTP exception.

Parameters

  • $request Request
  • $others array
  • $method string
deprecated protected

methodNotAllowed ( array $others , $method ) : void

Throw a method not allowed HTTP exception.

Parameters

  • $others array
  • $method string
public

compile ( ) : array

Compile the routes for caching.

public

dumper ( ) : Symfony\...\CompiledUrlMatcherDumper

Return the CompiledUrlMatcherDumper instance for the route collection.

public

toSymfonyRouteCollection ( ) : Symfony\...\RouteCollection

Convert the collection to a Symfony RouteCollection instance.

protected

addToSymfonyRoutesCollection ( Symfony\...\RouteCollection $symfonyRoutes , Route $route ) : Symfony\...\RouteCollection

Add a route to the SymfonyRouteCollection instance.

Parameters

  • $symfonyRoutes Symfony\...\RouteCollection
  • $route Route
protected

generateRouteName ( ) : string

Get a randomly generated route name.

public

getIterator ( ) : ArrayIterator

Get an iterator for the items.

public

count ( ) : int

Count the number of items in the collection.