function DirectoryLoader::supports
Same name in this branch
- 11.1.x vendor/symfony/routing/Loader/DirectoryLoader.php \Symfony\Component\Routing\Loader\DirectoryLoader::supports()
File
-
vendor/
symfony/ dependency-injection/ Loader/ DirectoryLoader.php, line 42
Class
- DirectoryLoader
- DirectoryLoader is a recursive loader to go through directories.
Namespace
Symfony\Component\DependencyInjection\LoaderCode
public function supports(mixed $resource, ?string $type = null) : bool {
if ('directory' === $type) {
return true;
}
return null === $type && \is_string($resource) && str_ends_with($resource, '/');
}