public function IniFileLoader::supports

Returns true if this class supports the given resource.

Parameters

mixed $resource A resource:

string $type The resource type:

Return value

Boolean true if this class supports the given resource, false otherwise

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Loader/IniFileLoader.php, line 58

Class

IniFileLoader
IniFileLoader loads parameters from INI files.

Namespace

Symfony\Component\DependencyInjection\Loader

Code

public function supports($resource, $type = null) {
  return is_string($resource) && 'ini' === pathinfo($resource, PATHINFO_EXTENSION);
}