您已请求不存在的服务""

时间:2014-09-03 13:31:05

标签: symfony dependency-injection

我收到错误You have requested a non-existent service "isi_isi_manager"但此服务已被注册。

怎么可能?

MyBundle / Resources / config / config.yml

services:
    isi_isi_manager:
        class: SMFR\IsiBundle\Entity\IsiManager
        arguments:
            - '@service_container'

ISIExtension

 public function load(array $configs, ContainerBuilder $container)
 {
    $configuration = new Configuration();
    $config = $this->processConfiguration($configuration, $configs);

    $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
    $loader->load('config.yml');
}

0 个答案:

没有答案