basecom/wrapper-bundle

Adds some default shortcuts for container and commands

Installs: 5 642

Dependents: 1

Stars: 2

Watchers: 2

Language: PHP

2.4.0 2014-01-03 09:21 UTC

README

License informations: LGPL

This bundle provides some shortcuts to default services/methods of a container:

  • getDoctrine(...)
  • getManager(...)
  • getContainer()
  • setContainer(...)
  • get(...)

To use the wrapper for a default, container wearing class, you just have to extend this clas from our wrapper:

class MyNewContainerWearingClass extends \basecom\WrapperBundle\ContainerAware\ContainerAware
{
    // cool stuff here
}

The same applies to a command:

class MyNewCommand extends \basecom\WrapperBundle\ContainerAware\ContainerAwareCommand
{
    // cool stuff here
}