Added proper providers to handle registration and boot.

This commit is contained in:
Andrey Savchenko committed 2018-02-13 11:37:54 +02:00
1 parent 48b3383e06
commit 06e3bb4657
10 files changed
+95 -97

No files matched your search

+3 -12
View File
@@ -2,21 +2,12 @@
namespace Rarst\Laps\Manager;
use Pimple\Container;
use Pimple\ServiceProviderInterface;
use Rarst\Laps\Bootable_Provider_Interface;
use Rarst\Laps\Laps;
/**
* Reorders
* Reorders plugin load to put Laps first and time this core boot stage.
*/
class Load_Order_Manager implements ServiceProviderInterface, Bootable_Provider_Interface {
class Load_Order_Manager {
public function register( Container $pimple ) {
}
public function boot( Laps $laps ) {
public function __construct() {
add_action( 'pre_update_option_active_plugins', [ $this, 'pre_update_option_active_plugins' ] );
add_action( 'pre_update_site_option_active_sitewide_plugins', [ $this, 'pre_update_option_active_plugins' ] );