public function main()
    {
        if ($this->isMaintenanceModeEnabled()) {
            $this->logger->info("Archiving won't run because maintenance mode is enabled");
            return;
        }

        $self = $this;
        Access::doAsSuperUser(function () use ($self) {
            $self->init();
            $self->run();
            $self->runScheduledTasks();
            $self->end();
        });
    }
public function main()
    {
        if ($this->isMaintenanceModeEnabled()) {
            $this->logger->info("Archiving won't run because maintenance mode is enabled");
            return;
        }

        $self = $this;
        Access::doAsSuperUser(function () use ($self) {
            $self->init();
            $self->run();
            $self->runScheduledTasks();
            $self->end();
        });
    }
public function main ( ) { if ( $ this -> isMaintenanceModeEnabled ( ) ) { $ this -> logger -> info ( "Archiving won't run because maintenance mode is enabled" ) ; return ; } $ self = $ this ; Access :: doAsSuperUser ( function ( ) use ( $ self ) { $ self -> init ( ) ; $ self -> run ( ) ; $ self -> runScheduledTasks ( ) ; $ self -> end ( ) ; } ) ; }
Initializes and runs the cron archiver.
Initializes and runs the cron archiver .