Symfony2 bundle for using Krumo in symfony2 and symfony3
Hooks for using krumo within Symfony2 or Symfony3
Krumo is basically a cascading visual var dump tool. If you don't know what it is, you can peruse some documentation here: http://krumo.sourceforge.net/
https://github.com/mmucklo/krumo
krumo($something); // Dumps krumo output of that variable from that point
{{ someVar | krumo }} {# Dumps krumo output of someVar #}
{{ krumo(someVar) }} { # Dumps krumo output of someVar #}
{{ krumo(someVar, [2, 1, 2]) }} {# Dumps krumo output of someVar with collapse settings of [2, 1, 2]
Add this line to your composer.json "require" section:
"require": {
...
"mmucklo/krumo-bundle": "*"
Add this to your AppKernel.php (in the registerBundles() section):
class AppKernel extends Kernel
{
public function registerBundles()
{
// ...
new Mjm\KrumoBundle\MjmKrumoBundle()
}
KrumoBundle:
resource: "@MjmKrumoBundle/Resources/config/routing/routing.yml"
prefix: /
mjm_krumo:
skin:
selected: schabalon.com
css:
url: /krumo/
display:
show_version: true
show_call_info: true
cascade: [5,10]
MIT