You are here

public function YamlFileLoader::supports in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/routing/Loader/YamlFileLoader.php \Symfony\Component\Routing\Loader\YamlFileLoader::supports()
  2. 8 vendor/symfony/dependency-injection/Loader/YamlFileLoader.php \Symfony\Component\DependencyInjection\Loader\YamlFileLoader::supports()
Same name and namespace in other branches
  1. 8.0 vendor/symfony/dependency-injection/Loader/YamlFileLoader.php \Symfony\Component\DependencyInjection\Loader\YamlFileLoader::supports()

File

vendor/symfony/dependency-injection/Loader/YamlFileLoader.php, line 77

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);
}