|
@@ -26,7 +26,7 @@ discard block |
|
|
block discarded – undo |
|
26
|
26
|
$events = $application->getEventManager()->getSharedManager(); |
|
27
|
27
|
$configuration = $application->getServiceManager()->get('doctrine.migrations.configuration'); |
|
28
|
28
|
// Attach to helper set event and load the entity manager helper. |
|
29
|
|
- $events->attach('doctrine', 'loadCli.post', function (EventInterface $e) { |
|
|
29
|
+ $events->attach('doctrine', 'loadCli.post', function(EventInterface $e) { |
|
30
|
30
|
$sm = $e->getParam('ServiceManager'); |
|
31
|
31
|
|
|
32
|
32
|
/* @var $cli \Symfony\Component\Console\Application */ |
|
@@ -41,7 +41,7 @@ discard block |
|
|
block discarded – undo |
|
41
|
41
|
); |
|
42
|
42
|
|
|
43
|
43
|
$configuration = $sm->get('doctrine.migrations.configuration'); |
|
44
|
|
- foreach($commands AS $command) { |
|
|
44
|
+ foreach ($commands AS $command) { |
|
45
|
45
|
$command->setMigrationConfiguration($configuration); |
|
46
|
46
|
} |
|
47
|
47
|
$cli->addCommands($commands); |
Please login to merge, or discard this patch.