You are here

public function ClosureLoader::load in Zircon Profile 8

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

File

vendor/symfony/dependency-injection/Loader/ClosureLoader.php, line 41

Class

ClosureLoader
ClosureLoader loads service definitions from a PHP closure.

Namespace

Symfony\Component\DependencyInjection\Loader

Code

public function load($resource, $type = null) {
  call_user_func($resource, $this->container);
}