Skip to content

Commit

Permalink
Alway install not only in administrative interface pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Apr 22, 2024
1 parent 6bb8284 commit a4ec06e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/Admin/AdminModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,6 @@ class AdminModule {
*/
public $tour;

/**
* Plugin installation.
*
* @var Install
*/
public $install;

/**
* Construct and initialize an admin object.
*
Expand All @@ -102,8 +95,6 @@ class AdminModule {
public function __construct( Plugin $plugin ) {
$this->plugin = $plugin;

$this->install = new Install( $plugin, $this );

// Actions.
add_action( 'admin_init', [ $this, 'admin_init' ] );
add_action( 'admin_menu', [ $this, 'admin_menu' ] );
Expand Down
2 changes: 2 additions & 0 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -1072,6 +1072,8 @@ public function plugins_loaded() {
$this->admin = new Admin\AdminModule( $this );
}

new Install( $this, $this->admin );

Check failure on line 1075 in src/Plugin.php

View workflow job for this annotation

GitHub Actions / phpstan / phpstan

Instantiated class Pronamic\WordPress\Pay\Install not found.

$controllers = [
new PagesController(),
new HomeUrlController(),
Expand Down

0 comments on commit a4ec06e

Please sign in to comment.