You are here

public function XmlFileLoader::supports in Zircon Profile 8.0

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

File

vendor/symfony/dependency-injection/Loader/XmlFileLoader.php, line 64

Class

XmlFileLoader
XmlFileLoader loads XML files service definitions.

Namespace

Symfony\Component\DependencyInjection\Loader

Code

public function supports($resource, $type = null) {
  return is_string($resource) && 'xml' === pathinfo($resource, PATHINFO_EXTENSION);
}