Php 获取错误:无法加载类型";jms“选择付款方式”;使用Symfony2 JMSPaymentCoreBundle
昨天我尝试安装JMSPaymentCoreBundle的主分支,并尝试使用文档中的一些代码 执行Php 获取错误:无法加载类型";jms“选择付款方式”;使用Symfony2 JMSPaymentCoreBundle,php,symfony,Php,Symfony,昨天我尝试安装JMSPaymentCoreBundle的主分支,并尝试使用文档中的一些代码 执行 $this->getFormFactory()->create('jms_choose_payment_method'... 我得到了一个错误: 无法加载类型“jms\u选择\u付款\u方法” 我安装了带有deps文件的捆绑包。我已经完成了registerBundle(在AppKernel.php中)和registerNamespace(在autoload.php中)。我可以看到文件v
$this->getFormFactory()->create('jms_choose_payment_method'...
我得到了一个错误:
无法加载类型“jms\u选择\u付款\u方法”
我安装了带有deps文件的捆绑包。我已经完成了registerBundle(在AppKernel.php中)和registerNamespace(在autoload.php中)。我可以看到文件vendor\bundles\JMS\Payment\CoreBundle\Form\ChoosePaymentMethodType.php存在,并且vendor\bundles\JMS\Payment\CoreBundle\Resources\config\Payment.xml确实包含:
<?xml version="1.0" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<parameters>
...
<parameter key="payment.form.choose_payment_method_type.class">JMS\Payment\CoreBundle\Form\ChoosePaymentMethodType</parameter>
...
</parameters>
<services>
...
<service id="payment.form.choose_payment_method_type" class="%payment.form.choose_payment_method_type.class%">
<argument type="service" id="payment.plugin_controller" />
<tag name="form.type" alias="jms_choose_payment_method" />
</service>
</services>
</container>
...
JMS\Payment\CoreBundle\Form\ChoosePaymentMethodType
...
...
我做错什么了吗?或者,这是一个bug吗?此捆绑包目前仅适用于symfony 2.1