Microweber\Commands\UpdateCommand::fire PHP Method

fire() public method

public fire ( )
    public function fire()
    {
        $this->info('Checking for update...');
        $check = $this->installer->check(true);
        if (!$check) {
            $this->info('Everything is up to date');
            return;
        }
        if (is_array($check) and !empty($check) and isset($check['count'])) {
            $this->info("There are {$check['count']} new updates");
            $this->info('Installing...');
            $check = $this->installer->apply_updates($check);
            $this->info('Updates are installed');
        }
    }
UpdateCommand