Returns true if this class supports the given resource.
Parameters
mixed $resource A resource:
string $type The resource type:
Return value
Boolean true if this class supports the given resource, false otherwise
File
- drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Loader/ClosureLoader.php, line 57
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;
}