2
为了使bundle自行工作,我想从当前的bundle路径调用我的类(Paypal)。有什么办法呢?如何在symfony2中引用config.yml中的bundle路径
#MyBundle/Resources/Config/config.yml
parameters:
paypal.class: **DontKnowWhatToPutHere**/Services/Paypal
paypal.argument: exampleParam
services:
paypal:
class: %paypal.class%
arguments: [%paypal.env%]
感谢所有帮助