FileLoader
abstract class FileLoader extends Loader
FileLoader is the abstract class used by all built-in loaders that are file based.
Properties
protected | $resolver | from Loader | |
static protected | $loading | ||
protected | $locator |
Methods
mixed
import(mixed $resource, string|null $type = null, bool $ignoreErrors = false, string|null $sourceResource = null)
Imports a resource.
$this|LoaderInterface
resolve(mixed $resource, string|null $type = null)
Finds a loader able to load an imported resource.
from Loader
setCurrentDir(string $dir)
Sets the current directory.
getLocator()
Returns the file locator used by this loader.
glob(string $pattern, bool $recursive, $resource = null, bool $ignoreErrors = false, bool $forExclusion = false, array $excluded = array())
No description
Details
mixed
import(mixed $resource, string|null $type = null, bool $ignoreErrors = false, string|null $sourceResource = null)
Imports a resource.
$this|LoaderInterface
resolve(mixed $resource, string|null $type = null)
Finds a loader able to load an imported resource.