FileLocator

FileLocator

class FileLocator extends FileLocator

FileLocator uses the KernelInterface to locate resources in bundles.

Methods

__construct(KernelInterface $kernel, null|string $path = null, string|array $paths = array())

Constructor.

string|array locate($file, string|null $currentPath = null, bool $first = true)

Returns a full path for a given file name.

Details