Commit 3265128e by Frédéric

Test

parent aee51050
......@@ -74,12 +74,9 @@ class CronCommand extends Command
]);
$item->setSynchronizedAt(new \DateTime());
$output->writeln('before update');
$app['storage']->getRepository(Flux::class)->update($item);
$output->writeln('after update');
$sync = new Synchronisation($this->config, $app, $item);
$output->writeln('sync done');
$sync->cron();
}
......
......@@ -41,6 +41,9 @@ class Schema
*/
public function updateCron()
{
$this->application['config']->initialize();
$this->application->register(new StorageServiceProvider());
$this->application->register(new DatabaseSchemaServiceProvider());
$output = $this->schemaManager()->update();
$this->session()->set('dbupdate_result', $output->getResponseStrings());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment