Documentation

FileLocator extends FileLocator
in package

FileLocator uses the KernelInterface to locate resources in bundles.

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

$kernel  : mixed
$path  : mixed
__construct()  : mixed
locate()  : mixed
{@inheritdoc}

Properties

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
Return values
mixed

Search results