Documentation

PhpFileLoader extends FileLoader
in package

PhpFileLoader loads routes from a PHP file.

The file must return a RouteCollection instance.

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

load()  : RouteCollection
Loads a PHP file.
supports()  : mixed
{@inheritdoc}

Methods

load()

Loads a PHP file.

public load(string $file[, string|null $type = null ]) : RouteCollection
Parameters
$file : string

A PHP file path

$type : string|null = null

The resource type

Return values
RouteCollection

A RouteCollection instance

supports()

{@inheritdoc}

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

Search results