Fix migration from v3.8.8 to v4.0.0

This commit is contained in:
Thibaud Fabre
2016-02-03 16:35:20 +01:00
parent 0bd25711b8
commit dc51e489fe
6 changed files with 109 additions and 7 deletions

View File

@@ -35,6 +35,14 @@ class module_console_systemUpgrade extends Command
protected function doExecute(InputInterface $input, OutputInterface $output)
{
require_once rtrim($this->container['root.path'], '\\/') . '/plugins/autoload.php';
$serviceProvider = new \Alchemy\Phrasea\Core\Provider\PluginServiceProvider();
$serviceProvider->register($this->getContainer());
$serviceProvider->boot($this->getContainer());
$this->getContainer()->loadPlugins();
$interactive = !$input->getOption('yes');
while ($migrations = $this->container['phraseanet.configuration-tester']->getMigrations()) {