Symfony\Component\Routing\Loader\ClosureLoader::load
Loads a Closure.
Signature
public function load(Closure
$closure,
[string|null
$type = null] )
Parameters
$closure
— object- A Closure
$type
— object- The resource type
Returns
- RouteCollection
- A RouteCollection instance