A simple Symfony 2 implementation of Whoops debug library (http://filp.github.io/whoops/)
Symfony 2 implementation of debugguer library Whoops
As usual, there is few steps required to install this bundle:
// composer.json
{
// ...
require-dev: {
// ...
"mickaelandrieu/whoops-bundle": "dev-master"
}
}
// app/AppKernel.php
public function registerBundles()
{
// ...
if (in_array($this->getEnvironment(), array('dev'))) {
$bundles[] = new Am\WhoopsBundle\AmWhoopsBundle();
}
return $bundles;
}
That's all ! Enjoy the new theme we've created for Symfony 2.
Note: this bundle is compatible with GnugatWizardBunde
You can as well create your own theme, by create a folder in your application
with the files you want to override: you will essentialy override the css styles
and need to create a file whoops.base.css
that you need to locate in an css folder.
For now, Whoops
is still a WIP and you have to follow this to make your own theme.
You can override as well all the files loaded by Whoops
library for the PrettyPageHandler
used here:
Then, configure the bundle in your config.yml
file:
am_whoops:
resources_path: "%kernel.root_dir%/../web/bundles/amwhoops"
This bundle is now fully unit-tested, I will accept only PR with tests related to this roadmap: