简体   繁体   中英

Symfony2: You have requested a non-existent service “jms_aop.pointcut_container”.

I'm relatively new to symfony. I have created a symfony project, and I am trying to require JMSDiExtraBundle. The thing is that when I run the composer update command I get the following error:

    Updating the "app/config/parameters.yml" file


    [Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException]
    You have requested a non-existent service "jms_aop.pointcut_container".



    Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-update-cmd event terminated with an exception



      [RuntimeException]
      An error occurred when executing the ""cache:clear --no-warmup"" command.



    update [--prefer-source] [--prefer-dist] [--dry-run] [--dev]        [--no-dev] [--lock]
     [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader]
     [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [packages1] ... [packagesN]



    C:\pathToProject>[Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException]
    The system cannot find the path specified.

Im requiring: "jms/di-extra-bundle": "1.5.0" but I have also tried :"jms/di-extra-bundle": "1.5.*@dev" My symfony version is : 2.6.5

Any help would be verry appreciated.

在我的情况下,我忘记在app \\ AppKernel.php中注册捆绑包“ JMS \\ AopBundle \\ JMSAopBundle”:

new JMS\AopBundle\JMSAopBundle(),

I have resolved my problem. I was including the bundles in the AppKernel.php file before I had run the command: php composer.phar update.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM