mop/hugbearbundle

Free Hugs

Installs: 951

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 4

Forks: 0

Open Issues: 0

Type:symfony-bundle

dev-master 2013-11-20 10:13 UTC

This package is auto-updated.

Last update: 2024-04-21 18:56:35 UTC


README

This is a little gimmick i wrote. It adds hugbears to your Symfony2 project!

To get an idea of what it is doing:

My image

Build Status

Installation

1. Install using composer

composer.json:

{
    "require": {
        "mop/hugbearbundle": "*"
    }
}
$ php composer.phar update mop/hugbearbundle

2. Enable the bundle

Preferably you add the bundle to your development environment. Otherwise the listener will add the bears even in the production environment (they won't activate though).

<?php
// app/AppKernel.php

public function registerBundles()
{
    // ...
    if (in_array($this->getEnvironment(), array('dev', 'test'))) {
        // ...
        $bundles[] = new Mop\HugbearBundle\MopHugbearBundle();
        // ...
    }
    // ..
}

3. Install assets

$ php app/console assets:install

4. Enjoy!

Open your application in the development environment. A hugbear should appear in your profilerbar. Click it and enjoy!