mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-28 13:08:45 +02:00
Re-dump autoloader and composer.lock
This commit is contained in:
@@ -108,7 +108,7 @@ class PhpFileLoader extends FileLoader
|
||||
foreach ($r->getParameters() as $parameter) {
|
||||
$reflectionType = $parameter->getType();
|
||||
if (!$reflectionType instanceof \ReflectionNamedType) {
|
||||
throw new \InvalidArgumentException(sprintf('Could not resolve argument "$%s" for "%s". You must typehint it (for example with "%s" or "%s").', $parameter->getName(), $path, ContainerConfigurator::class, ContainerBuilder::class));
|
||||
throw new \InvalidArgumentException(\sprintf('Could not resolve argument "$%s" for "%s". You must typehint it (for example with "%s" or "%s").', $parameter->getName(), $path, ContainerConfigurator::class, ContainerBuilder::class));
|
||||
}
|
||||
$type = $reflectionType->getName();
|
||||
|
||||
@@ -133,7 +133,7 @@ class PhpFileLoader extends FileLoader
|
||||
try {
|
||||
$configBuilder = $this->configBuilder($type);
|
||||
} catch (InvalidArgumentException|\LogicException $e) {
|
||||
throw new \InvalidArgumentException(sprintf('Could not resolve argument "%s" for "%s".', $type.' $'.$parameter->getName(), $path), 0, $e);
|
||||
throw new \InvalidArgumentException(\sprintf('Could not resolve argument "%s" for "%s".', $type.' $'.$parameter->getName(), $path), 0, $e);
|
||||
}
|
||||
$configBuilders[] = $configBuilder;
|
||||
$arguments[] = $configBuilder;
|
||||
@@ -171,7 +171,7 @@ class PhpFileLoader extends FileLoader
|
||||
|
||||
// If it does not start with Symfony\Config\ we don't know how to handle this
|
||||
if (!str_starts_with($namespace, 'Symfony\\Config\\')) {
|
||||
throw new InvalidArgumentException(sprintf('Could not find or generate class "%s".', $namespace));
|
||||
throw new InvalidArgumentException(\sprintf('Could not find or generate class "%s".', $namespace));
|
||||
}
|
||||
|
||||
// Try to get the extension alias
|
||||
@@ -183,12 +183,12 @@ class PhpFileLoader extends FileLoader
|
||||
|
||||
if (!$this->container->hasExtension($alias)) {
|
||||
$extensions = array_filter(array_map(fn (ExtensionInterface $ext) => $ext->getAlias(), $this->container->getExtensions()));
|
||||
throw new InvalidArgumentException(sprintf('There is no extension able to load the configuration for "%s". Looked for namespace "%s", found "%s".', $namespace, $alias, $extensions ? implode('", "', $extensions) : 'none'));
|
||||
throw new InvalidArgumentException(\sprintf('There is no extension able to load the configuration for "%s". Looked for namespace "%s", found "%s".', $namespace, $alias, $extensions ? implode('", "', $extensions) : 'none'));
|
||||
}
|
||||
|
||||
$extension = $this->container->getExtension($alias);
|
||||
if (!$extension instanceof ConfigurationExtensionInterface) {
|
||||
throw new \LogicException(sprintf('You cannot use the config builder for "%s" because the extension does not implement "%s".', $namespace, ConfigurationExtensionInterface::class));
|
||||
throw new \LogicException(\sprintf('You cannot use the config builder for "%s" because the extension does not implement "%s".', $namespace, ConfigurationExtensionInterface::class));
|
||||
}
|
||||
|
||||
$configuration = $extension->getConfiguration([], $this->container);
|
||||
|
||||
Reference in New Issue
Block a user