Skip to content

Commit

Permalink
Fix missing migration service loading (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
janborg committed May 10, 2024
1 parent 2a93f1f commit 9ca3b0e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions config/migrations.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

declare(strict_types=1);

namespace Symfony\Component\DependencyInjection\Loader\Configurator;

use Terminal42\NotificationCenterBundle\Migration\EmailGatewayMigration;

return static function (ContainerConfigurator $container): void {
$services = $container->services();
$services->defaults()->autoconfigure();

$services->set(EmailGatewayMigration::class)
->args([
service('database_connection'),
])
;
};
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public function load(array $configs, ContainerBuilder $container): void
$loader->load('listeners.php');
$loader->load('notification_types.php');
$loader->load('modules.php');
$loader->load('migrations.php');

$container->registerForAutoconfiguration(GatewayInterface::class)
->addTag(self::GATEWAY_TAG)
Expand Down

0 comments on commit 9ca3b0e

Please sign in to comment.