You are here

public function PhpFileLoader::supports in Zircon Profile 8.0

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

File

vendor/symfony/dependency-injection/Loader/PhpFileLoader.php, line 45

Class

PhpFileLoader
PhpFileLoader loads service definitions from a PHP file.

Namespace

Symfony\Component\DependencyInjection\Loader

Code

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