FileLocator
extends FileLocator
in package
FileLocator uses the KernelInterface to locate resources in bundles.
Tags
Table of Contents
- $kernel : mixed
- $path : mixed
- __construct() : mixed
- locate() : mixed
- {@inheritdoc}
Properties
$kernel
private
mixed
$kernel
$path
private
mixed
$path
Methods
__construct()
public
__construct(KernelInterface $kernel[, string|null $path = null ][, array<string|int, mixed> $paths = [] ]) : mixed
Parameters
- $kernel : KernelInterface
-
A KernelInterface instance
- $path : string|null = null
-
The path the global resource directory
- $paths : array<string|int, mixed> = []
-
An array of paths where to look for resources
Return values
mixed —locate()
{@inheritdoc}
public
locate(mixed $file[, mixed $currentPath = null ][, mixed $first = true ]) : mixed
Parameters
- $file : mixed
- $currentPath : mixed = null
- $first : mixed = true