You are here

public function ClosureLoader::supports in Service Container 7.2

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

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Loader/ClosureLoader.php, line 49

Class

ClosureLoader
ClosureLoader loads service definitions from a PHP closure.

Namespace

Symfony\Component\DependencyInjection\Loader

Code

public function supports($resource, $type = null) {
  return $resource instanceof \Closure;
}