Skip to content

petrica/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

About

Integrates Krumo debugging tool intro Symfony2 as a Service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published