From 17bd505ff6d331530232a5da8e3c0a28220f1e64 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 4 Apr 2012 08:36:43 -0500 Subject: [PATCH] pass response in laravel done event. --- laravel/laravel.php | 2 +- laravel/profiling/profiler.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/laravel/laravel.php b/laravel/laravel.php index 3a90fe0d..b54ca570 100644 --- a/laravel/laravel.php +++ b/laravel/laravel.php @@ -246,4 +246,4 @@ $response->send(); | */ -Event::fire('laravel.done'); \ No newline at end of file +Event::fire('laravel.done', array($response)); \ No newline at end of file diff --git a/laravel/profiling/profiler.php b/laravel/profiling/profiler.php index ef8ae252..4bd5d863 100644 --- a/laravel/profiling/profiler.php +++ b/laravel/profiling/profiler.php @@ -79,7 +79,7 @@ class Profiler { // We'll attach the profiler to the "done" event so that we can easily // attach the profiler output to the end of the output sent to the // browser. This will display the profiler's nice toolbar. - Event::listen('laravel.done', function() + Event::listen('laravel.done', function($response) { echo Profiler::render(); });