From 79e197c4cc882c55ee20760681dba0138b6b6c02 Mon Sep 17 00:00:00 2001 From: Andrey Savchenko Date: Thu, 8 Feb 2018 18:36:31 +0200 Subject: [PATCH] Moved another leftover action. --- src/Events/Hook_Events_Provider.php | 2 ++ src/Laps.php | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Events/Hook_Events_Provider.php b/src/Events/Hook_Events_Provider.php index d25f59e..efeed12 100644 --- a/src/Events/Hook_Events_Provider.php +++ b/src/Events/Hook_Events_Provider.php @@ -24,6 +24,8 @@ class Hook_Events_Provider implements ServiceProviderInterface, Bootable_Provide $this->stopwatch = $laps['stopwatch']; + $this->stopwatch->start( 'Plugins Load', 'plugin' ); + $events = new Core_Events(); $this->add_events( $events->get() ); diff --git a/src/Laps.php b/src/Laps.php index 7a75754..7b36996 100644 --- a/src/Laps.php +++ b/src/Laps.php @@ -63,8 +63,6 @@ class Laps extends Container { return; } - $this['stopwatch']->start( 'Plugins Load', 'plugin' ); - foreach ( $this->providers as $provider ) { if ( $provider instanceof Bootable_Provider_Interface ) {