我正在考虑写我自己的控制台命令。我注意到它使用了容器,知道吗?这是什么?
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
发布于 2013-03-05 20:09:18
它为您提供了access to the service container in your commands,因此您可以从中获取服务。
https://stackoverflow.com/questions/15223368
相似问题