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 ObjectRouteLoader

A route loader that calls a method on an object to load the routes.

Symfony\Component\Config\Loader\Loader
Extended by Symfony\Component\Routing\Loader\ObjectRouteLoader

Direct known subclasses

Symfony\Component\Routing\Loader\DependencyInjection\ServiceRouterLoader, Symfony\Component\Routing\Tests\Loader\ObjectRouteLoaderForTest
Abstract
Namespace: Symfony\Component\Routing\Loader
Author: Ryan Weaver <ryan@knpuniversity.com>
Located at Loader/ObjectRouteLoader.php
Methods summary
abstract protected object
# getServiceObject( string $id )

Returns the object that the method will be called on to load routes.

Returns the object that the method will be called on to load routes.

For example, if your application uses a service container, the $id may be a service id.

Parameters

$id
string
$id

Returns

object
public Symfony\Component\Routing\RouteCollection
# load( mixed $resource, string|null $type = null )

Calls the service that will load the routes.

Calls the service that will load the routes.

Parameters

$resource
mixed
$resource Some value that will resolve to a callable
$type
string|null
$type The resource type

Returns

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