Skip to content

Commit

Permalink
fix: allow to prepend artgris_file_manager (#140)
Browse files Browse the repository at this point in the history
- When the Configuration service has dependencies, the
  "getConfiguration" of the bundle extension must be defined to build it
  • Loading branch information
DjLeChuck authored Feb 28, 2024
1 parent e0ab8ec commit 3a6d42c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions DependencyInjection/ArtgrisFileManagerExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,17 @@
*/
class ArtgrisFileManagerExtension extends Extension
{
public function getConfiguration(array $config, ContainerBuilder $container): Configuration
{
return new Configuration($container->getParameter('kernel.project_dir'));
}

/**
* {@inheritdoc}
*/
public function load(array $configs, ContainerBuilder $container): void
{

$configuration = new Configuration($container->getParameter('kernel.project_dir'));
$configuration = $this->getConfiguration($configs, $container);
$config = $this->processConfiguration($configuration, $configs);

$container->setParameter('artgris_file_manager', $config);
Expand Down

0 comments on commit 3a6d42c

Please sign in to comment.