XmlFileLoader
class XmlFileLoader extends FileLoader
XmlFileLoader loads XML routing files.
Constants
NAMESPACE_URI |
|
SCHEME_PATH |
|
Properties
protected | $resolver | from Loader | |
static protected | $loading | from FileLoader | |
protected | $locator | from FileLoader |
Methods
mixed
import(mixed $resource, string|null $type = null, bool $ignoreErrors = false, string|null $sourceResource = null)
Imports a resource.
from FileLoader
$this|LoaderInterface
resolve(mixed $resource, string|null $type = null)
Finds a loader able to load an imported resource.
from Loader
glob(string $pattern, bool $recursive, $resource = null, bool $ignoreErrors = false, bool $forExclusion = false, array $excluded = array())
No description
from FileLoader
load(string $file, string|null $type = null)
Loads an XML file.
parseNode(RouteCollection $collection, DOMElement $node, string $path, string $file)
Parses a node from a loaded XML file.
bool
supports(mixed $resource, string|null $type = null)
Returns whether this class supports the given resource.
parseRoute(RouteCollection $collection, DOMElement $node, string $path)
Parses a route and adds it to the RouteCollection.
parseImport(RouteCollection $collection, DOMElement $node, string $path, string $file)
Parses an import and adds the routes in the resource to the RouteCollection.
loadFile(string $file)
Loads an XML file.
Details
mixed
import(mixed $resource, string|null $type = null, bool $ignoreErrors = false, string|null $sourceResource = null)
Imports a resource.
$this|LoaderInterface
resolve(mixed $resource, string|null $type = null)
Finds a loader able to load an imported resource.
protected
glob(string $pattern, bool $recursive, $resource = null, bool $ignoreErrors = false, bool $forExclusion = false, array $excluded = array())
protected
parseNode(RouteCollection $collection, DOMElement $node, string $path, string $file)
Parses a node from a loaded XML file.
bool
supports(mixed $resource, string|null $type = null)
Returns whether this class supports the given resource.
protected
parseRoute(RouteCollection $collection, DOMElement $node, string $path)
Parses a route and adds it to the RouteCollection.
protected
parseImport(RouteCollection $collection, DOMElement $node, string $path, string $file)
Parses an import and adds the routes in the resource to the RouteCollection.