You are here

public function PhpFileLoader::supports in Service Container 7

Same name and namespace in other branches
  1. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Loader/PhpFileLoader.php \Symfony\Component\DependencyInjection\Loader\PhpFileLoader::supports()

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/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);
}