FileLoader

class FileLoader extends ArrayLoader Methods MessageCatalogue load(mixed $resource, string $locale, string $domain = 'messages') Loads a locale. Details MessageCatalogue load(mixed $resource, string $locale, string $domain = 'messages') Loads a locale. Parameters mixed $resource A resource string $locale A locale string $domain The domain Return Value MessageCatalogue A MessageCatalogue instance Exceptions NotFoundResourceException when the res

FileLoader

class FileLoader implements LoaderInterface Base class for all file based loaders. Methods __construct(string $file) Constructor. Details __construct(string $file) Constructor. Parameters string $file The mapping file to load Exceptions MappingException if the mapping file does not exist or is not readable

FileLoader

class FileLoader extends FileLoader FileLoader is the abstract class used by all built-in loaders that are file based. Methods LoaderResolverInterface getResolver() Gets the loader resolver. from Loader setResolver(LoaderResolverInterface $resolver) Sets the loader resolver. from Loader mixed import(mixed $resource, string|null $type = null, bool $ignoreErrors = false, string|null $sourceResource = null) Imports a resource. from FileLoader LoaderInterface resolve(mixed $resou

FileLoader

class FileLoader extends Loader FileLoader is the abstract class used by all built-in loaders that are file based. Methods LoaderResolverInterface getResolver() Gets the loader resolver. from Loader setResolver(LoaderResolverInterface $resolver) Sets the loader resolver. from Loader mixed import(mixed $resource, string|null $type = null, bool $ignoreErrors = false, string|null $sourceResource = null) Imports a resource. LoaderInterface resolve(mixed $resource, string|null $t

FileinfoMimeTypeGuesser::isSupported()

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

FileinfoMimeTypeGuesser::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

FileinfoMimeTypeGuesser

class FileinfoMimeTypeGuesser implements MimeTypeGuesserInterface Guesses the mime type using the PECL extension FileInfo. Methods __construct(string $magicFile = null) Constructor. static bool isSupported() Returns whether this guesser is supported on the current OS/PHP setup. string guess(string $path) Guesses the mime type of the file with the given path. Details __construct(string $magicFile = null) Constructor. Parameters stri

FileFormField::upload()

upload(string $value) Sets the value of the field. Parameters string $value The value of the field

FileFormField::setValue()

setValue(string $value) Sets the value of the field. Parameters string $value The value of the field

FileFormField::setFilePath()

setFilePath(string $path) Sets path to the file as string for simulating HTTP request. Parameters string $path The path to the file