Documentation

ClosureLoader extends Loader
in package

ClosureLoader loads routes from a PHP closure.

The Closure must return a RouteCollection instance.

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

Properties

$env  : mixed
$resolver  : mixed

Methods

__construct()  : mixed
getResolver()  : LoaderResolverInterface
Gets the loader resolver.
import()  : mixed
Imports a resource.
load()  : RouteCollection
Loads a Closure.
resolve()  : LoaderInterface
Finds a loader able to load an imported resource.
setResolver()  : mixed
Sets the loader resolver.
supports()  : bool
{@inheritdoc}

Properties

$resolver

protected mixed $resolver

Methods

__construct()

public __construct([string $env = null ]) : mixed
Parameters
$env : string = null

import()

Imports a resource.

public import(mixed $resource[, string $type = null ]) : mixed
Parameters
$resource : mixed
$type : string = null

supports()

{@inheritdoc}

public supports(mixed $resource[, string $type = null ]) : bool
Parameters
$resource : mixed
$type : string = null
Return values
bool

        
On this page

Search results