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 AnnotationDirectoryLoader

AnnotationDirectoryLoader loads routing information from annotations set on PHP classes and methods.

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

Loads from annotations from a directory.

Loads from annotations from a directory.

Parameters

$path
string
$path A directory path
$type
string|null
$type The resource type

Returns

Symfony\Component\Routing\RouteCollection
A RouteCollection instance

Throws

InvalidArgumentException
When the directory does not exist or its routes cannot be parsed

Overrides

Symfony\Component\Routing\Loader\AnnotationFileLoader::load()
public
# supports( mixed $resource, mixed $type = null )

Overrides

Symfony\Component\Routing\Loader\AnnotationFileLoader::supports()
Methods inherited from Symfony\Component\Routing\Loader\AnnotationFileLoader
__construct(), findClass()
Properties inherited from Symfony\Component\Routing\Loader\AnnotationFileLoader
$loader
Ratchet API documentation generated by ApiGen 2.8.0