Created
March 20, 2014 15:59
-
-
Save lifesign/9667119 to your computer and use it in GitHub Desktop.
laravel3 tracy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Autoloader::namespaces(array( | |
'Tracy' => Bundle::path('tracy') . 'lib' . DS . 'src' .DS .'Tracy', | |
)); | |
if (!IoC::registered('tracy')) { | |
IoC::singleton('tracy', function () { | |
Tracy\Debugger::enable(); | |
} | |
); | |
} | |
// // If detailed errors are enabled | |
// // we will resolve the tracy to override laravel native error handle | |
if (Config::get('error.detail')){ | |
IoC::resolve('tracy'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment