開発環境に切り替えようとすると、エラーなしでサイトがクラッシュします(apacheログでも)
Composer Updateを実行しようとすると、常にこの問題が発生します。
[Symfony \ Component \ DependencyInjection \ Exception \ ServiceNotFoundException]サービス「web_profiler.controller.profiler」は、存在しないサービス「profiler」に依存しています。
以下は私のAppKernelのコンテンツです
<?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
// new Symfony\Bundle\SecurityBundle\SecurityBundle(),
new Symfony\Bundle\TwigBundle\TwigBundle(),
new Symfony\Bundle\MonologBundle\MonologBundle(),
// new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
// new Symfony\Bundle\AsseticBundle\AsseticBundle(),
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
// new JMS\AopBundle\JMSAopBundle(),
// new JMS\DiExtraBundle\JMSDiExtraBundle($this),
// new JMS\SecurityExtraBundle\JMSSecurityExtraBundle(),
new Zepluf\Bundle\StoreBundle\StoreBundle(),
);
if (in_array($this->getEnvironment(), array('dev', 'test'))) {
// $bundles[] = new Acme\DemoBundle\AcmeDemoBundle();
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
$bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
$bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
}
return $bundles;
}
public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
}
}
私のcomposer.json:
{
"name": "zepluf/standard-edition",
"description": "The \"ZePLUF Standard Edition\" distribution",
"authors": [
{
"name": "Raine Ng",
"email": "vunguyen@rubikin.com",
"homepage": "http://rubikin.com"
}
],
"autoload": {
"psr-0": {
"": "src/",
"Zepluf" : "src/Zepluf/",
"plugins": "app/"
}
},
"require": {
"php": ">=5.3.3",
"composer/installers": "*",
"zepluf/installer": "*",
"symfony/symfony": "2.2.*",
"symfony/framework-bundle": ">=2.1",
"symfony/web-profiler-bundle": "2.2.*@dev",
"doctrine/orm": ">=2.2.3,<2.4-dev",
"doctrine/doctrine-bundle": "1.2.*",
"twig/extensions": "1.0.*",
"symfony/assetic-bundle": "2.1.*",
"symfony/swiftmailer-bundle": "2.2.*",
"symfony/monolog-bundle": "2.2.*",
"sensio/distribution-bundle": "2.2.*",
"sensio/framework-extra-bundle": "2.2.*",
"sensio/generator-bundle": "2.2.*",
"zepluf/plugin-ricache": "dev-master",
"zepluf/plugin-ricjloader": "dev-master"
},
"scripts": {
"post-install-cmd": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
],
"post-update-cmd": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
]
},
"minimum-stability": "dev",
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web"
}
}
何が起こっているのだろうか、どうすればこれを修正できますか?