red-circle/console-process-manager-bundle

Provides a way to logging all console events

v1.0.5 2016-11-24 09:27 UTC

This package is not auto-updated.

Last update: 2024-06-08 18:21:56 UTC


README

Provides a way to logging all console events

Configuration

Register ConsoleProcessManagerBundle in your app.

Add RedCircle\ConsoleProcessManagerBundle\ConsoleProcessManagerBundle::enable($application); in your console file in app directory.

Example of AppKernel.php file:

class AppKernel extends Kernel
{
    public function registerBundles()
    { 
        $bundles = array(
            ...
            new RedCircle\ConsoleProcessManagerBundle\ConsoleProcessManagerBundle(),
        );

    return $bundles;
    }
}

Troubleshooting

Unknown Entity namespace alias 'ConsoleProcessManagerBundle'.

If you are using entity_managers.default.mappings, and have bellow issue.

[Doctrine\ORM\ORMException]                                    
Unknown Entity namespace alias 'ConsoleProcessManagerBundle'. 

Simply add ConsoleProcessManagerBundle: ~ in your config.yml file.

entity_managers:
    default:
        mappings:
            ...
            ConsoleProcessManagerBundle: ~