Loader\LoaderInterface (Component\Config)

Symfony\Component\Config\Loader\LoaderInterface

interface LoaderInterface

LoaderInterface is the interface implemented by all loader classes.

Methods

load(mixed $resource, string|null $type = null)

Loads a resource.

bool supports(mixed $resource, string|null $type = null)

Returns whether this class supports the given resource.

LoaderResolverInterface getResolver()

Gets the loader resolver.

setResolver(LoaderResolverInterface $resolver)

Sets the loader resolver.

Details

public load(mixed $resource, string|null $type = null)

Loads a resource.

Parameters

mixed $resource The resource
string|null $type The resource type or null if unknown

Exceptions

Exception If something went wrong

public bool supports(mixed $resource, string|null $type = null)

Returns whether this class supports the given resource.

Parameters

mixed $resource A resource
string|null $type The resource type or null if unknown

Return Value

bool True if this class supports the given resource, false otherwise

public LoaderResolverInterface getResolver()

Gets the loader resolver.

Return Value

LoaderResolverInterface A LoaderResolverInterface instance

public setResolver(LoaderResolverInterface $resolver)

Sets the loader resolver.

Parameters

LoaderResolverInterface $resolver A LoaderResolverInterface instance

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Config/Loader/LoaderInterface.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部