Skip to content

Integrates Krumo debugging tool intro Symfony2 as a Service

Notifications You must be signed in to change notification settings

timbostop/TremendKrumoBundle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TremendKrumoBundle - Krumo debug tool for Symfony2

TremendKrumoBundle

Installation (Symfony2)

Download TremendKrumoBundle to the vendor directory under bundles/Tremend/KrumoBundle. You can use the Symfony’s vendor script for the automated procces. Add the following in your deps file:

[TremendKrumoBundle]
    git=git://github.com/petrica/TremendKrumoBundle.git
    target=/bundles/Tremend/KrumoBundle

and run the vendors script to download bundles:

php bin/vendors install

install assets if not already installed:

php app/console assets:install web

Register Bundle in AppKernel.php

public function registerBundles()
{
    $bundles = array(
        //...
        new Tremend\KrumoBundle\TremendKrumoBundle(),
        //...
    );
    return $bundles;
}

Autoload

'Tremend'          => __DIR__.'/../vendor/bundles',

Usage

The Krumo class is defined inside the global namespace, that is why you can call the krumo function anywhere in your code like this:

\krumo($variableToDump);

Krumo class is defined as a service for Symfony2 and it is loaded automatically at the bundle boot process.

To Do

  • Fix CSS images background path

Sponsor

This plugin is sponsored by Tremend Software Consulting Romania

Tremend Software Consulting

About

Integrates Krumo debugging tool intro Symfony2 as a Service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 92.5%
  • JavaScript 7.5%