예제 #1
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $output->writeln(sprintf('<comment>%s - Updating the platform...</comment>', date('H:i:s')));
     $verbosityLevelMap = array(LogLevel::NOTICE => OutputInterface::VERBOSITY_NORMAL, LogLevel::INFO => OutputInterface::VERBOSITY_NORMAL, LogLevel::DEBUG => OutputInterface::VERBOSITY_NORMAL);
     $consoleLogger = new ConsoleLogger($output, $verbosityLevelMap);
     /** @var \Claroline\CoreBundle\Library\Installation\PlatformInstaller $installer */
     $installer = $this->getContainer()->get('claroline.installation.platform_installer');
     $installer->setOutput($output);
     $installer->setLogger($consoleLogger);
     $installer->installFromOperationFile();
     /** @var \Claroline\CoreBundle\Library\Installation\Refresher $refresher */
     $refresher = $this->getContainer()->get('claroline.installation.refresher');
     $refresher->dumpAssets($this->getContainer()->getParameter('kernel.environment'));
     $refresher->compileGeneratedThemes();
     MaintenanceHandler::disableMaintenance();
     $output->writeln(sprintf('<comment>%s - Platform updated.</comment>', date('H:i:s')));
 }
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     MaintenanceHandler::disableMaintenance();
 }
예제 #3
0
 /**
  * @EXT\Route("/maintenance/end", name="claro_admin_parameters_end_maintenance")
  * @SEC\PreAuthorize("canOpenAdminTool('platform_parameters')")
  *
  * @return \Symfony\Component\HttpFoundation\Response
  */
 public function endMaintenanceAction()
 {
     //the current ip must be whitelisted so it can access the the plateform when it's under maintenance
     MaintenanceHandler::disableMaintenance();
     $this->ipwlm->removeIP($_SERVER['REMOTE_ADDR']);
     return new RedirectResponse($this->router->generate('claro_admin_parameters_index'));
 }
예제 #4
0
 /**
  * @EXT\Route("/maintenance/end", name="claro_admin_parameters_end_maintenance")
  * @SEC\PreAuthorize("canOpenAdminTool('platform_parameters')")
  *
  * @return \Symfony\Component\HttpFoundation\Response
  */
 public function endMaintenanceAction()
 {
     MaintenanceHandler::disableMaintenance();
     return new RedirectResponse($this->router->generate('claro_admin_parameters_index'));
 }