Skip to content

Commit

Permalink
Merge pull request #548 from Payum/sf-config-builders
Browse files Browse the repository at this point in the history
  • Loading branch information
pierredup committed May 3, 2023
2 parents 6c2cd27 + 0ecc1ac commit 9e1765a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions DependencyInjection/PayumExtension.php
Expand Up @@ -33,17 +33,20 @@ class PayumExtension extends Extension implements PrependExtensionInterface
*/
protected array $storagesFactories = array();

/**
* {@inheritDoc}
*/
public function load(array $configs, ContainerBuilder $container): void
public function __construct()
{
$this->addStorageFactory(new FilesystemStorageFactory);
$this->addStorageFactory(new DoctrineStorageFactory);
$this->addStorageFactory(new CustomStorageFactory);
$this->addStorageFactory(new Propel1StorageFactory);
$this->addStorageFactory(new Propel2StorageFactory);
}

/**
* {@inheritDoc}
*/
public function load(array $configs, ContainerBuilder $container): void
{
$mainConfig = $this->getConfiguration($configs, $container);

$config = $this->processConfiguration($mainConfig, $configs);
Expand Down

0 comments on commit 9e1765a

Please sign in to comment.