FilePathsIterator deprecated

class FilePathsIterator extends ArrayIterator deprecated since 2.8, to be removed in 3.0. Iterate over shell command result. Methods __construct(array $paths, string $baseDir) mixed __call(string $name, array $arguments) SplFileInfo current() Return an instance of SplFileInfo with support for relative paths. string key() next() rewind() string getSubPath() string getSubPathname() Details __construct(array $pat

FileNotFoundException

class FileNotFoundException extends FileException Thrown when a file was not found. Methods __construct(string $path) Constructor. Details __construct(string $path) Constructor. Parameters string $path The path to the file that was not found

FileNotFoundException

class FileNotFoundException extends IOException Exception class thrown when a file couldn't be found. Methods __construct($message = null, $code, Exception $previous = null, $path = null) string getPath() Returns the associated path for the exception. from IOException Details __construct($message = null, $code, Exception $previous = null, $path = null) Parameters $message $code Exception $previous $path st

FilenameFilterIterator

class FilenameFilterIterator extends MultiplePcreFilterIterator FilenameFilterIterator filters files by patterns (a regexp, a glob, or a string). Methods rewind() This is a workaround for the problem with \FilterIterator leaving inner \FilesystemIterator in wrong state after rewind in some cases. from FilterIterator __construct(Iterator $iterator, array $matchPatterns, array $noMatchPatterns) Constructor. from MultiplePcreFilterIterator bool accept() Filters the iterator values.

FileLocatorInterface

interface FileLocatorInterface Methods string|array locate(string $name, string|null $currentPath = null, bool $first = true) Returns a full path for a given file name. Details string|array locate(string $name, string|null $currentPath = null, bool $first = true) Returns a full path for a given file name. Parameters string $name The file name to locate string|null $currentPath The current path bool $first Whether to return the first occurrence

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 __construct(KernelInterface $kernel, null|string $path = null, string|array $paths = array())

FileLocator

class FileLocator implements FileLocatorInterface FileLocator uses an array of pre-defined paths to find files. Methods __construct(string|array $paths = array()) Constructor. string|array locate(string $name, string|null $currentPath = null, bool $first = true) Returns a full path for a given file name. Details __construct(string|array $paths = array()) Constructor. Parameters string|array $paths A path or an array of paths where to lo

FileLoaderLoadException

class FileLoaderLoadException extends Exception Exception class for when a resource cannot be loaded or imported. Methods __construct(string $resource, string $sourceResource = null, int $code = null, Exception $previous = null) Details __construct(string $resource, string $sourceResource = null, int $code = null, Exception $previous = null) Parameters string $resource The resource that could not be imported string $sourceResource The origina

FileLoaderImportCircularReferenceException

class FileLoaderImportCircularReferenceException extends FileLoaderLoadException Exception class for when a circular reference is detected when importing resources. Methods __construct(array $resources, int $code = null, Exception $previous = null) Details __construct(array $resources, int $code = null, Exception $previous = null) Parameters array $resources int $code The error code Exception $previous A previous exception

FileLoader

class FileLoader extends AbstractLoader Base loader for loading validation metadata from a file. Constants DEFAULT_NAMESPACE The namespace to load constraints from by default. Methods __construct(string $file) Creates a new loader. Details __construct(string $file) Creates a new loader. Parameters string $file The mapping file to load Exceptions MappingException If the file does not exist or is not readable