FileType::buildView()

buildView(FormView $view, FormInterface $form, array $options) Builds the form view. This method is called for each type in the hierarchy starting from the top most type. Type extensions can further modify the view. A view of a form is built before the views of the child forms are built. This means that you cannot access child views in this method. If you need to do so, move your logic to {@link finishView()} instead. Parameters FormView $view The view FormInterface $form The form

FileType

class FileType extends AbstractType Methods buildForm(FormBuilderInterface $builder, array $options) Builds the form. from AbstractType buildView(FormView $view, FormInterface $form, array $options) Builds the form view. finishView(FormView $view, FormInterface $form, array $options) Finishes the form view. configureOptions(OptionsResolver $resolver) Configures the options for this type. string getBlockPrefix() Returns the prefix of the template block name for this type.

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

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

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::rename()

rename(string $origin, string $target, bool $overwrite = false) Renames a file or a directory. Parameters string $origin The origin filename or directory string $target The new filename or directory bool $overwrite Whether to overwrite the target if it already exists Exceptions IOException When target file or directory already exists IOException When origin cannot be renamed