CodeExplorer FileLoaderImportCircularReferenceException example
return $loader->
load($resource,
$type);
} if (null !==
$this->currentDir
) { $resource =
$loader->
getLocator()->
locate($resource,
$this->currentDir, false
);
} $resources = \
is_array($resource) ?
$resource :
[$resource];
for ($i = 0;
$i <
$resourcesCount = \
count($resources); ++
$i) { if (isset(self::
$loading[$resources[$i]])) { if ($i ==
$resourcesCount - 1
) { throw new FileLoaderImportCircularReferenceException(array_keys(self::
$loading));
} } else { $resource =
$resources[$i];
break;
} } self::
$loading[$resource] = true;
try { $ret =
$loader->
load($resource,
$type);
} finally {