Filesystem::dumpFile()

dumpFile(string $filename, string $content) Atomically dumps content into a file. Parameters string $filename The file to be written to string $content The data to write into the file Exceptions IOException If the file cannot be written to.

Filesystem

class Filesystem Provides basic utility to manipulate the file system. Methods copy(string $originFile, string $targetFile, bool $overwriteNewerFiles = false) Copies a file. mkdir(string|array|Traversable $dirs, int $mode = 511) Creates a directory recursively. bool exists(string|array|Traversable $files) Checks the existence of files or directories. touch(string|array|Traversable $files, int $time = null, int $atime = null) Sets access and modification time of file.

FileResource::isFresh()

bool isFresh(int $timestamp) Returns true if the resource has not been updated since the given timestamp. Parameters int $timestamp The last time the resource was loaded Return Value bool True if the resource has not been updated, false otherwise

FileStorage

class FileStorage extends Storage FileStorage represents a template stored on the filesystem. Methods __construct(string $template) Constructor. from Storage string __toString() Returns the object string representation. from Storage string getContent() Returns the content of the template. Details __construct(string $template) Constructor. Parameters string $template The template name string __toString()

FilesLoader

class FilesLoader extends LoaderChain Base loader for loading validation metadata from a list of files. Methods __construct(array $paths) Creates a new loader. bool loadClassMetadata(ClassMetadata $metadata) Loads validation metadata into a {@link ClassMetadata} instance. from LoaderChain Details __construct(array $paths) Creates a new loader. Parameters array $paths An array of file paths bool loadClassMeta

FileResource::unserialize()

unserialize($serialized) Parameters $serialized

FileResource::serialize()

serialize()

FileProfilerStorage::purge()

purge() Purges all data from the database.

FileProfilerStorage::find()

array find(string $ip, string $url, string $limit, string $method, int|null $start = null, int|null $end = null, $statusCode = null) Finds profiler tokens for the given criteria. Parameters string $ip The IP string $url The URL string $limit The maximum number of tokens to return string $method The request method int|null $start The start date to search from int|null $end The end date to search to $statusCode Return Value array An array of tokens

FileResource::getResource()

string getResource() Return Value string The canonicalized, absolute path to the resource