[ Index ]

PHP Cross Reference of phpBB-3.3.11-deutsch

title

Body

[close]

/vendor/symfony/routing/Loader/ -> YamlFileLoader.php (summary)

(no description)

File Size: 221 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

YamlFileLoader:: (5 methods):
  load()
  supports()
  parseRoute()
  parseImport()
  validate()


Class: YamlFileLoader  - X-Ref

YamlFileLoader loads Yaml routing files.

load($file, $type = null)   X-Ref
Loads a Yaml file.

return: RouteCollection A RouteCollection instance
param: string      $file A Yaml file path
param: string|null $type The resource type

supports($resource, $type = null)   X-Ref
{@inheritdoc}


parseRoute(RouteCollection $collection, $name, array $config, $path)   X-Ref
Parses a route and adds it to the RouteCollection.

param: RouteCollection $collection A RouteCollection instance
param: string          $name       Route name
param: array           $config     Route definition
param: string          $path       Full path of the YAML file being processed

parseImport(RouteCollection $collection, array $config, $path, $file)   X-Ref
Parses an import and adds the routes in the resource to the RouteCollection.

param: RouteCollection $collection A RouteCollection instance
param: array           $config     Route definition
param: string          $path       Full path of the YAML file being processed
param: string          $file       Loaded file name

validate($config, $name, $path)   X-Ref
Validates the route configuration.

param: array  $config A resource config
param: string $name   The config key
param: string $path   The loaded file path



Generated: Sat Nov 4 14:26:03 2023 Cross-referenced by PHPXref 0.7.1