当我想要在实时模式下将其转换时,我的网站实际上存在问题。我有这个错误:
致命错误:类 'Lexik \ Bundle \ TranslationBundle \ LexikTranslationBundle'未找到 第27行/home/maisonka/www/app/AppKernel.php
但我不明白,因为我的捆绑lexik在我的供应商中,appKernel.php
看起来像:
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 Kayser\PlatformBundle\KayserPlatformBundle(),
new Liip\ImagineBundle\LiipImagineBundle(),
new Sonata\IntlBundle\SonataIntlBundle(),
new Sonata\DoctrineORMAdminBundle\SonataDoctrineORMAdminBundle(),
new Sonata\CoreBundle\SonataCoreBundle(),
new Sonata\BlockBundle\SonataBlockBundle(),
new Knp\Bundle\MenuBundle\KnpMenuBundle(),
new Sonata\AdminBundle\SonataAdminBundle(),
new Lexik\Bundle\TranslationBundle\LexikTranslationBundle(),
);
答案 0 :(得分:0)
我发现了什么是我的问题,我刚刚删除了这一行:"new Lexik\Bundle\TranslationBundle\LexikTranslationBundle(),"
现在一切正常。