FileType::configureOptions()

configureOptions(OptionsResolver $resolver) Configures the options for this type. Parameters OptionsResolver $resolver The resolver for the options

FileType::finishView()

finishView(FormView $view, FormInterface $form, array $options) Finishes the form view. This method gets called for each type in the hierarchy starting from the top most type. Type extensions can further modify the view. When this method is called, views of the form's children have already been built and finished and can be accessed. You should only implement such logic in this method that actually accesses child views. For everything else you are recommended to implement {@link buil

FilesystemLoader

class FilesystemLoader implements LoaderInterface FilesystemLoader is a loader that read templates from the filesystem. Methods __construct(FileLocatorInterface $locator) Constructor. Storage|bool load(TemplateReferenceInterface $template) Loads a template. bool isFresh(TemplateReferenceInterface $template, int $time) Returns true if the template is still fresh. Details __construct(FileLocatorInterface $locator) Constructor. Parame

FilesystemLoader

class FilesystemLoader extends Loader FilesystemLoader is a loader that read templates from the filesystem. Methods setLogger(LoggerInterface $logger) Sets the debug logger to use for this loader. from Loader __construct(array $templatePathPatterns) Constructor. Storage|bool load(TemplateReferenceInterface $template) Loads a template. bool isFresh(TemplateReferenceInterface $template, int $time) Returns true if the template is still fresh. Details

FilesystemLoader

class FilesystemLoader extends Twig_Loader_Filesystem FilesystemLoader extends the default Twig filesystem loader to work with the Symfony paths and template references. Methods __construct(FileLocatorInterface $locator, TemplateNameParserInterface $parser) Constructor. exists($name) {@inheritdoc} Details __construct(FileLocatorInterface $locator, TemplateNameParserInterface $parser) Constructor. Parameters FileLocatorInterface $locator

FilesystemAdapter

class FilesystemAdapter extends AbstractAdapter Traits LoggerAwareTrait Methods static createSystemCache($namespace, $defaultLifetime, $version, $directory, LoggerInterface $logger = null) from AbstractAdapter getItem($key) {@inheritdoc} from AbstractAdapter getItems(array $keys = array()) {@inheritdoc} from AbstractAdapter hasItem($key) {@inheritdoc} from AbstractAdapter clear() {@inheritdoc} from AbstractAdapter deleteItem($key) {@inheritdoc} from AbstractAdap

Filesystem::touch()

touch(string|array|Traversable $files, int $time = null, int $atime = null) Sets access and modification time of file. Parameters string|array|Traversable $files A filename, an array of files, or a \Traversable instance to create int $time The touch time as a Unix timestamp int $atime The access time as a Unix timestamp Exceptions IOException When touch fails

Filesystem::tempnam()

string tempnam(string $dir, string $prefix) Creates a temporary file with support for custom stream wrappers. Parameters string $dir The directory where the temporary filename will be created string $prefix The prefix of the generated temporary filename Note: Windows uses only the first three characters of prefix Return Value string The new temporary filename (with path), or throw an exception on failure

Filesystem::symlink()

symlink(string $originDir, string $targetDir, bool $copyOnWindows = false) Creates a symbolic link or copy a directory. Parameters string $originDir The origin directory path string $targetDir The symbolic link name bool $copyOnWindows Whether to copy files if on Windows Exceptions IOException When symlink fails

Filesystem::makePathRelative()

string makePathRelative(string $endPath, string $startPath) Given an existing path, convert it to a path relative to a given starting path. Parameters string $endPath Absolute path of target string $startPath Absolute path where traversal begins Return Value string Path of target relative to starting path