Spec-Zone.ru › Symfony 4.1

Загрузчик файлов

абстрактный класс FileLoader расширяет Loader

FileLoader — абстрактный класс, используемый всеми встроенными загрузчиками, основанными на файлах.

Свойства

защищённый $resolver из Loader
статический защищённый $loading
защищённый $locator

Методы

LoaderResolverInterface getResolver()

Получает загрузчик разрешений.

из Loader
setResolver(LoaderResolverInterface $resolver)

Устанавливает загрузчик разрешений.

из Loader
mixed import(mixed $resource, string|null $type = null, bool $ignoreErrors = false, string|null $sourceResource = null)

Импортирует ресурс.

$this|LoaderInterface resolve(mixed $resource, string|null $type = null)

Находит загрузчик, способный загрузить импортированный ресурс.

из Loader
__construct(FileLocatorInterface $locator)
setCurrentDir(string $dir)

Устанавливает текущую директорию.

FileLocatorInterface getLocator()

Возвращает локатор файлов, используемый этим загрузчиком.

glob(string $pattern, bool $recursive, $resource = null, bool $ignoreErrors = false)

Подробное описание

LoaderResolverInterface getResolver()

Получает загрузчик разрешений.

Значение возврата

LoaderResolverInterface Экземпляр LoaderResolverInterface

setResolver(LoaderResolverInterface $resolver)

Устанавливает загрузчик разрешений.

Параметры

LoaderResolverInterface $resolver

mixed import(mixed $resource, string|null $type = null, bool $ignoreErrors = false, string|null $sourceResource = null)

Импортирует ресурс.

Параметры

mixed $resource Ресурс
string|null $type Тип ресурса или null, если неизвестен
bool $ignoreErrors Игнорировать ошибки импорта или нет
string|null $sourceResource Исходный ресурс, импортирующий новый ресурс

Значение возврата

mixed

Исключения

FileLoaderLoadException
FileLoaderImportCircularReferenceException
FileLocatorFileNotFoundException

$this|LoaderInterface resolve(mixed $resource, string|null $type = null)

Находит загрузчик, способный загрузить импортированный ресурс.

Параметры

mixed $resource Ресурс
string|null $type Тип ресурса или null, если неизвестен

Значение возврата

$this|LoaderInterface

Исключения

FileLoaderLoadException Если загрузчик не найден

__construct(FileLocatorInterface $locator)

Параметры

FileLocatorInterface $locator

setCurrentDir(string $dir)

Устанавливает текущую директорию.

Параметры

string $dir

FileLocatorInterface getLocator()

Возвращает локатор файлов, используемый этим загрузчиком.

Значение возврата

FileLocatorInterface

protected glob(string $pattern, bool $recursive, $resource = null, bool $ignoreErrors = false)

Параметры

string $pattern
bool $recursive
$resource
bool $ignoreErrors

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Config/Loader/FileLoader.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API