Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/dependency-injection/Loader/ClosureLoader.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 1fec387a4317 |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
9 * file that was distributed with this source code. | 9 * file that was distributed with this source code. |
10 */ | 10 */ |
11 | 11 |
12 namespace Symfony\Component\DependencyInjection\Loader; | 12 namespace Symfony\Component\DependencyInjection\Loader; |
13 | 13 |
14 use Symfony\Component\Config\Loader\Loader; | |
14 use Symfony\Component\DependencyInjection\ContainerBuilder; | 15 use Symfony\Component\DependencyInjection\ContainerBuilder; |
15 use Symfony\Component\Config\Loader\Loader; | |
16 | 16 |
17 /** | 17 /** |
18 * ClosureLoader loads service definitions from a PHP closure. | 18 * ClosureLoader loads service definitions from a PHP closure. |
19 * | 19 * |
20 * The Closure has access to the container as its first argument. | 20 * The Closure has access to the container as its first argument. |
33 /** | 33 /** |
34 * {@inheritdoc} | 34 * {@inheritdoc} |
35 */ | 35 */ |
36 public function load($resource, $type = null) | 36 public function load($resource, $type = null) |
37 { | 37 { |
38 call_user_func($resource, $this->container); | 38 \call_user_func($resource, $this->container); |
39 } | 39 } |
40 | 40 |
41 /** | 41 /** |
42 * {@inheritdoc} | 42 * {@inheritdoc} |
43 */ | 43 */ |