basecom/wrapper-bundle

此包已被弃用且不再维护。未建议替代包。

为容器和命令添加了一些默认快捷键

2.4.0 2014-01-03 09:21 UTC

This package is auto-updated.

Last update: 2024-07-27 20:42:19 UTC


README

许可证信息: LGPL

此扩展包提供了一些对容器默认服务/方法的快捷方式

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

要使用包装器,只需从我们的包装器扩展默认的容器穿戴类即可

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

同样适用于命令

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