function YamlFileLoader::supports
Same name in this branch
- 11.1.x vendor/symfony/dependency-injection/Loader/YamlFileLoader.php \Symfony\Component\DependencyInjection\Loader\YamlFileLoader::supports()
File
-
vendor/
symfony/ routing/ Loader/ YamlFileLoader.php, line 108
Class
- YamlFileLoader
- YamlFileLoader loads Yaml routing files.
Namespace
Symfony\Component\Routing\LoaderCode
public function supports(mixed $resource, ?string $type = null) : bool {
return \is_string($resource) && \in_array(pathinfo($resource, \PATHINFO_EXTENSION), [
'yml',
'yaml',
], true) && (!$type || 'yaml' === $type);
}