Fix composer update - Clean also twig templates + run opcache_reset

pull/2874/head
Julio Montoya 7 years ago
parent f5ecc03c88
commit e04a9b3712
  1. 9
      src/Chamilo/CoreBundle/Composer/ScriptHandler.php

@ -19,9 +19,18 @@ class ScriptHandler
$newPath = __DIR__.'/../../../../web'; $newPath = __DIR__.'/../../../../web';
$fs = new Filesystem(); $fs = new Filesystem();
$fs->mirror($appCss, $newPath, null, ['override' => true]); $fs->mirror($appCss, $newPath, null, ['override' => true]);
if ($fs->exists(__DIR__.'/../../../../web/build')) { if ($fs->exists(__DIR__.'/../../../../web/build')) {
$fs->remove(__DIR__.'/../../../../web/build'); $fs->remove(__DIR__.'/../../../../web/build');
} }
if ($fs->exists(__DIR__.'/../../../../app/cache/twig')) {
$fs->remove(__DIR__.'/../../../../app/cache/twig');
}
if (function_exists('opcache_reset')) {
opcache_reset();
}
} }
/** /**

Loading…
Cancel
Save