From e0e0b51b9b437b218d3d0629a60558c55f84a530 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 3 Apr 2012 16:57:55 -0500 Subject: [PATCH] tweaking profiler. --- application/start.php | 16 ++++++++++++++++ laravel/laravel.php | 16 ---------------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/application/start.php b/application/start.php index 8d2db780..06649bf6 100755 --- a/application/start.php +++ b/application/start.php @@ -112,6 +112,22 @@ Event::listen(Lang::loader, function($bundle, $language, $file) return Lang::file($bundle, $language, $file); }); +/* +|-------------------------------------------------------------------------- +| Attach The Laravel Profiler +|-------------------------------------------------------------------------- +| +| If the profiler is enabled, we will attach it to the Laravel events +| for both queries and logs. This allows the profiler to intercept +| any of the queries or logs performed by the application. +| +*/ + +if (Config::get('application.profiler')) +{ + Profiler::attach(); +} + /* |-------------------------------------------------------------------------- | Enable The Blade View Engine diff --git a/laravel/laravel.php b/laravel/laravel.php index 0f81b6f3..3a90fe0d 100644 --- a/laravel/laravel.php +++ b/laravel/laravel.php @@ -143,22 +143,6 @@ Input::$input = $input; Bundle::start(DEFAULT_BUNDLE); -/* -|-------------------------------------------------------------------------- -| Attach The Laravel Profiler -|-------------------------------------------------------------------------- -| -| If the profiler is enabled, we will attach it to the Laravel events -| for both queries and logs. This allows the profiler to intercept -| any of the queries or logs performed by the application. -| -*/ - -if (Config::get('application.profiler')) -{ - Profiling\Profiler::attach(); -} - /* |-------------------------------------------------------------------------- | Auto-Start Other Bundles