+ // the closure forbids access to the private scope in the included file
+ $load = \Closure::bind(function ($path) use ($container, $loader, $resource, $type) {
+ return include $path;
+ }, $this, ProtectedPhpFileLoader::class);
+
+ $callback = $load($path);
+
+ if ($callback instanceof \Closure) {
+ $callback(new ContainerConfigurator($this->container, $this, $this->instanceof, $path, $resource), $this->container, $this);
+ }