public function YamlFileLoader::supports in Service Container 7
Same name and namespace in other branches
- 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\LoaderCode
public function supports($resource, $type = null) {
return is_string($resource) && in_array(pathinfo($resource, PATHINFO_EXTENSION), array(
'yml',
'yaml',
), true);
}