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%]
感謝所有幫助