You are here

public function YamlFileLoader::supports in Service Container 7

Same name and namespace in other branches
  1. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php \Symfony\Component\DependencyInjection\Loader\YamlFileLoader::supports()

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php, line 76

Class

YamlFileLoader
YamlFileLoader loads YAML files service definitions.

Namespace

Symfony\Component\DependencyInjection\Loader

Code

public function supports($resource, $type = null) {
  return is_string($resource) && in_array(pathinfo($resource, PATHINFO_EXTENSION), array(
    'yml',
    'yaml',
  ), true);
}