src/class-plugin-provider.php
protected function boot_upgrader( Container $container ) {
		if ( ! $this->doing_cron() && ! is_admin() ) {
			return;
		}

		$upgrader = new Upgrader( $container['options_manager'] );

		add_action( 'init', [ $upgrader, 'perform_upgrade' ] );
	}
protected function boot_upgrader( Container $container ) {
		if ( ! $this->doing_cron() && ! is_admin() ) {
			return;
		}

		$upgrader = new Upgrader( $container['options_manager'] );

		add_action( 'init', [ $upgrader, 'perform_upgrade' ] );
	}
protected function boot_upgrader ( Container $ container ) { if ( ! $ this -> doing_cron ( ) && ! is_admin ( ) ) { return ; } $ upgrader = new Upgrader ( $ container [ 'options_manager' ] ) ; add_action ( 'init' , [ $ upgrader , 'perform_upgrade' ] ) ; }
Boots the upgrader object on cron or admin requests.

@param  Container $container Plugin container instance.

@return void
Boots the upgrader object on cron or admin requests .