basecom / wrapper-bundle
Adds some default shortcuts for container and commands
Installs: 11 178
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 0
Open Issues: 0
Type:bundle
Requires
- symfony/symfony: >=2.3,<3.0
This package is auto-updated.
Last update: 2024-07-27 20:42:19 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 }