Skip to content

Instantly share code, notes, and snippets.

@lifesign
Created March 20, 2014 15:59
Show Gist options
  • Save lifesign/9667119 to your computer and use it in GitHub Desktop.
Save lifesign/9667119 to your computer and use it in GitHub Desktop.
laravel3 tracy
<?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