FileDumper::formatCatalogue()

abstract string formatCatalogue(MessageCatalogue $messages, string $domain, array $options = array()) Transforms a domain of a message catalogue to its string representation. Parameters MessageCatalogue $messages string $domain array $options Return Value string representation

FileDumper::setRelativePathTemplate()

setRelativePathTemplate(string $relativePathTemplate) Sets the template for the relative paths to files. Parameters string $relativePathTemplate A template for the relative paths to files

FileDumper::dump()

dump(MessageCatalogue $messages, array $options = array()) Dumps the message catalogue. Parameters MessageCatalogue $messages The message catalogue array $options Options that are used by the dumper

FileBinaryMimeTypeGuesser::guess()

string guess(string $path) Guesses the mime type of the file with the given path. Parameters string $path The path to the file Return Value string The mime type or NULL, if none could be guessed Exceptions FileNotFoundException If the file does not exist AccessDeniedException If the file could not be read

FileBag::replace()

replace(array $files = array()) Replaces the current parameters by a new set. Parameters array $files

FilecontentFilterIterator

class FilecontentFilterIterator extends MultiplePcreFilterIterator FilecontentFilterIterator filters files by their contents using patterns (regexps or strings). 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 i

FileBinaryMimeTypeGuesser

class FileBinaryMimeTypeGuesser implements MimeTypeGuesserInterface Guesses the mime type with the binary "file" (only available on *nix). Methods __construct(string $cmd = 'file -b --mime %s 2>/dev/null') Constructor. static bool isSupported() Returns whether this guesser is supported on the current OS. string guess(string $path) Guesses the mime type of the file with the given path. Details __construct(string $cmd = 'file -b --mime %s 2>

FileBinaryMimeTypeGuesser::isSupported()

static bool isSupported() Returns whether this guesser is supported on the current OS. Return Value bool

FileBag::add()

add(array $files = array()) Adds parameters. Parameters array $files

FileBag

class FileBag extends ParameterBag FileBag is a container for uploaded files. Methods __construct(array $parameters = array()) Constructor. array all() Returns the parameters. from ParameterBag array keys() Returns the parameter keys. from ParameterBag replace(array $files = array()) Replaces the current parameters by a new set. add(array $files = array()) Adds parameters. mixed get(string $key, mixed $default = null, bool $deep = false) Returns a parameter by name