Skip to content

Commit

Permalink
CS (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
bytehead committed Sep 25, 2024
1 parent 888cceb commit fb41275
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/DependencyInjection/OneupFlysystemExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,24 +57,24 @@ private function createAdapter(string $name, array $config, ContainerBuilder $co
{
foreach ($config as $key => $adapter) {
if (\array_key_exists($key, $factories)) {
$id = sprintf('oneup_flysystem.%s_adapter', $name);
$id = \sprintf('oneup_flysystem.%s_adapter', $name);
$factories[$key]->create($container, $id, $adapter);

return $id;
}
}

throw new \LogicException(sprintf('The adapter \'%s\' is not configured.', $name));
throw new \LogicException(\sprintf('The adapter \'%s\' is not configured.', $name));
}

private function createFilesystem(string $name, array $config, ContainerBuilder $container, array $adapters): Reference
{
if (!\array_key_exists($config['adapter'], $adapters)) {
throw new \LogicException(sprintf('The adapter \'%s\' is not defined.', $config['adapter']));
throw new \LogicException(\sprintf('The adapter \'%s\' is not defined.', $config['adapter']));
}

$adapter = $adapters[$config['adapter']];
$id = sprintf('oneup_flysystem.%s_filesystem', $name);
$id = \sprintf('oneup_flysystem.%s_filesystem', $name);

$tagParams = ['key' => $name];

Expand Down

0 comments on commit fb41275

Please sign in to comment.