From f126f3fd532bc6b006eefc84229b730cc0296b17 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Thu, 18 May 2017 14:16:26 -0600 Subject: [PATCH 1/2] Put onOutputRendered back in processor --- system/src/Grav/Common/Grav.php | 2 -- system/src/Grav/Common/Processors/RenderProcessor.php | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/system/src/Grav/Common/Grav.php b/system/src/Grav/Common/Grav.php index eb152277e2..a260ec95f7 100644 --- a/system/src/Grav/Common/Grav.php +++ b/system/src/Grav/Common/Grav.php @@ -137,8 +137,6 @@ public function process() $debugger = $this['debugger']; $debugger->render(); - $this->fireEvent('onOutputRendered'); - register_shutdown_function([$this, 'shutdown']); } diff --git a/system/src/Grav/Common/Processors/RenderProcessor.php b/system/src/Grav/Common/Processors/RenderProcessor.php index 3248b4e4d9..9f393bbc43 100644 --- a/system/src/Grav/Common/Processors/RenderProcessor.php +++ b/system/src/Grav/Common/Processors/RenderProcessor.php @@ -32,6 +32,8 @@ public function process() // remove any output $container->output = ''; + + $this->fireEvent('onOutputRendered'); } } } From f7266ef75234ef0beb47b4d649b176701a3d9363 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Thu, 18 May 2017 14:33:10 -0600 Subject: [PATCH 2/2] Typo --- system/src/Grav/Common/Processors/RenderProcessor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/src/Grav/Common/Processors/RenderProcessor.php b/system/src/Grav/Common/Processors/RenderProcessor.php index 9f393bbc43..5171c507d1 100644 --- a/system/src/Grav/Common/Processors/RenderProcessor.php +++ b/system/src/Grav/Common/Processors/RenderProcessor.php @@ -33,7 +33,7 @@ public function process() // remove any output $container->output = ''; - $this->fireEvent('onOutputRendered'); + $this->container->fireEvent('onOutputRendered'); } } }