concrete/src/Foundation/Runtime/Run/DefaultRunner.php
protected function handleUpdates()
    {
        $config = $this->app->make('config');
        if (!$config->get('concrete.maintenance_mode')) {
            try {
                $this->app->handleAutomaticUpdates();
            } catch (MutexBusyException $x) {
                if ($x->getMutexKey() !== Update::MUTEX_KEY) {
                    throw $x;
                }
                $config->set('concrete.maintenance_mode', true);
            }
            catch (MigrationIncompleteException $x) {
                $request = Request::getInstance();
                $requestUri = $request->getUri();
                $rf = $this->app->make(ResponseFactoryInterface::class);
                return $rf->redirect($requestUri, Response::HTTP_FOUND);
            }
        }
    }
protected function handleUpdates()
    {
        $config = $this->app->make('config');
        if (!$config->get('concrete.maintenance_mode')) {
            try {
                $this->app->handleAutomaticUpdates();
            } catch (MutexBusyException $x) {
                if ($x->getMutexKey() !== Update::MUTEX_KEY) {
                    throw $x;
                }
                $config->set('concrete.maintenance_mode', true);
            }
            catch (MigrationIncompleteException $x) {
                $request = Request::getInstance();
                $requestUri = $request->getUri();
                $rf = $this->app->make(ResponseFactoryInterface::class);
                return $rf->redirect($requestUri, Response::HTTP_FOUND);
            }
        }
    }
protected function handleUpdates ( ) { $ config = $ this -> app -> make ( 'config' ) ; if ( ! $ config -> get ( 'concrete.maintenance_mode' ) ) { try { $ this -> app -> handleAutomaticUpdates ( ) ; } catch ( MutexBusyException $ x ) { if ( $ x -> getMutexKey ( ) !== Update :: MUTEX_KEY ) { throw $ x ; } $ config -> set ( 'concrete.maintenance_mode' , true ) ; } catch ( MigrationIncompleteException $ x ) { $ request = Request :: getInstance ( ) ; $ requestUri = $ request -> getUri ( ) ; $ rf = $ this -> app -> make ( ResponseFactoryInterface :: class ) ; return $ rf -> redirect ( $ requestUri , Response :: HTTP_FOUND ) ; } } }
Update automatically.

@deprecated In a future major version this will be part of HTTP middleware

@return Response|void Returns a response if an error occurs
Update automatically .