Overview

Namespaces

  • Evenement
  • None
  • PHP
  • Psr
    • Http
      • Message
  • Ratchet
    • Http
    • RFC6455
      • Handshake
      • Messaging
    • Server
    • Session
      • Serialize
      • Storage
        • Proxy
    • Wamp
    • WebSocket
  • React
    • EventLoop
      • Tick
      • Timer
    • Socket
    • Stream
  • Symfony
    • Component
      • HttpFoundation
        • Session
          • Attribute
          • Flash
          • Storage
            • Handler
            • Proxy
      • Routing
        • Annotation
        • Exception
        • Generator
          • Dumper
        • Loader
          • DependencyInjection
        • Matcher
          • Dumper
        • Tests
          • Annotation
          • Fixtures
            • AnnotatedClasses
            • OtherAnnotatedClasses
          • Generator
            • Dumper
          • Loader
          • Matcher
            • Dumper

Classes

  • AnnotationClassLoader
  • AnnotationDirectoryLoader
  • AnnotationFileLoader
  • ClosureLoader
  • DirectoryLoader
  • ObjectRouteLoader
  • PhpFileLoader
  • RecursiveCallbackFilterIterator
  • XmlFileLoader
  • YamlFileLoader
  • Overview
  • Namespace
  • Class
  • Tree

Class PhpFileLoader

PhpFileLoader loads routes from a PHP file.

The file must return a RouteCollection instance.

Symfony\Component\Config\Loader\FileLoader
Extended by Symfony\Component\Routing\Loader\PhpFileLoader
Namespace: Symfony\Component\Routing\Loader
Author: Fabien Potencier <fabien@symfony.com>
Located at Loader/PhpFileLoader.php
Methods summary
public Symfony\Component\Routing\RouteCollection
# load( string $file, string|null $type = null )

Loads a PHP file.

Loads a PHP file.

Parameters

$file
string
$file A PHP file path
$type
string|null
$type The resource type

Returns

Symfony\Component\Routing\RouteCollection
A RouteCollection instance
public
# supports( mixed $resource, mixed $type = null )
Ratchet API documentation generated by ApiGen 2.8.0