File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -97,7 +97,6 @@ you will probably need to change the extension of the imported file in
9797
9898` ` `
9999$ bin/console cache:clear
100- $ bin/console doctrine:migrations:diff
101100$ bin/console doctrine:migrations:migrate
102101$ bin/console assets:install --symlink
103102$ bin/console sylius:theme:assets:install --symlink
Original file line number Diff line number Diff line change 1010
1111namespace BitBag \SyliusCmsPlugin \DependencyInjection ;
1212
13+ use Sylius \Bundle \CoreBundle \DependencyInjection \PrependDoctrineMigrationsTrait ;
1314use Symfony \Component \DependencyInjection \ContainerBuilder ;
1415use Symfony \Component \DependencyInjection \Extension \Extension ;
16+ use Symfony \Component \DependencyInjection \Extension \PrependExtensionInterface ;
1517
16- final class BitBagSyliusCmsExtension extends Extension
18+ final class BitBagSyliusCmsExtension extends Extension implements PrependExtensionInterface
1719{
20+ use PrependDoctrineMigrationsTrait;
21+
1822 public function load (array $ configs , ContainerBuilder $ container ): void
1923 {
2024 }
25+
26+ public function prepend (ContainerBuilder $ container ): void
27+ {
28+ $ this ->prependDoctrineMigrations ($ container );
29+ }
30+
31+ protected function getMigrationsNamespace (): string
32+ {
33+ return 'BitBag\SyliusCmsPlugin\Migrations ' ;
34+ }
35+
36+ protected function getMigrationsDirectory (): string
37+ {
38+ return '@BitBagSyliusCmsPlugin/Migrations ' ;
39+ }
40+
41+ protected function getNamespacesOfMigrationsExecutedBefore (): array
42+ {
43+ return ['Sylius\Bundle\CoreBundle\Migrations ' ];
44+ }
2145}
You can’t perform that action at this time.
0 commit comments