basecom/wrapper-bundle

Adds some default shortcuts for container and commands

2.4.0 2014-01-03 09:21 UTC

This package is auto-updated.

Last update: 2024-03-27 20:01:02 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
}