Symfony2:您请求了一个不存在的服务 "jms_aop.pointcut_container"。
Symfony2: You have requested a non-existent service "jms_aop.pointcut_container".
我对 symfony 比较陌生。我已经创建了一个 symfony 项目,我正在尝试要求 JMSDiExtraBundle。问题是,当我 运行 作曲家更新命令时,我收到以下错误:
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.
我要求:"jms/di-extra-bundle":“1.5.0”
但我也试过 :"jms/di-extra-bundle": "1.5.*@dev"
我的 symfony 版本是:2.6.5
如有任何帮助,我们将不胜感激。
我已经解决了我的问题。在执行 运行 命令之前,我将捆绑包包含在 AppKernel.php 文件中:php composer.phar update.
在我的例子中,我忘记注册包 "JMS\AopBundle\JMSAopBundle" 添加 app\AppKernel。php:
new JMS\AopBundle\JMSAopBundle(),
我对 symfony 比较陌生。我已经创建了一个 symfony 项目,我正在尝试要求 JMSDiExtraBundle。问题是,当我 运行 作曲家更新命令时,我收到以下错误:
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.
我要求:"jms/di-extra-bundle":“1.5.0” 但我也试过 :"jms/di-extra-bundle": "1.5.*@dev" 我的 symfony 版本是:2.6.5
如有任何帮助,我们将不胜感激。
我已经解决了我的问题。在执行 运行 命令之前,我将捆绑包包含在 AppKernel.php 文件中:php composer.phar update.
在我的例子中,我忘记注册包 "JMS\AopBundle\JMSAopBundle" 添加 app\AppKernel。php:
new JMS\AopBundle\JMSAopBundle(),