abstract class FilesLoader extends LoaderChain
Base loader for loading validation metadata from a list of files.
| protected | $loaders | from LoaderChain |
| __construct(array $paths) Creates a new loader. | ||
| bool | loadClassMetadata(ClassMetadata $metadata) Loads validation metadata into a {@link ClassMetadata} instance. | from LoaderChain |
| LoaderInterface[] | getLoaders() | from LoaderChain |
| LoaderInterface[] | getFileLoaders(array $paths) Returns an array of file loaders for the given file paths. | |
| LoaderInterface | getFileLoaderInstance(string $path) Creates a loader for the given file path. |
Creates a new loader.
| array | $paths | An array of file paths |
Loads validation metadata into a {@link ClassMetadata} instance.
| ClassMetadata | $metadata |
| bool | Whether the loader succeeded |
| LoaderInterface[] |
Returns an array of file loaders for the given file paths.
| array | $paths | An array of file paths |
| LoaderInterface[] | The metadata loaders |
Creates a loader for the given file path.
| string | $path | The file path |
| LoaderInterface | The created loader |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Validator/Mapping/Loader/FilesLoader.html