$this->
setCurrentDir(\
dirname($path));
$this->container?->
fileExists($path);
// the closure forbids access to the private scope in the included file
$load = \Closure::
bind(static function D
$file) use ($loader) { return include $file;
}, null, ProtectedDefinitionFileLoader::
class);
$callback =
$load($path);
if (\
is_object($callback) && \
is_callable($callback)) { $this->
executeCallback($callback,
new DefinitionConfigurator($this->treeBuilder,
$this,
$path,
$resource),
$path);
} return null;
} public function supports(mixed
$resource, string
$type = null
): bool
{ if (!\
is_string($resource)) { return false;
}