[ Index ]

PHP Cross Reference of phpBB-3.3.2-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.

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

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: Wed Nov 11 20:28:18 2020 Cross-referenced by PHPXref 0.7.1