Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/symfony/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Svn SYMFONY2在本地工作得很好,但在AppKernel中找不到的服务器类中_Svn_Symfony - Fatal编程技术网

Svn SYMFONY2在本地工作得很好,但在AppKernel中找不到的服务器类中

Svn SYMFONY2在本地工作得很好,但在AppKernel中找不到的服务器类中,svn,symfony,Svn,Symfony,我的应用程序在本地运行得很好,但当我将其上传到服务器时,无论我输入了什么有效的方向,它都会失败。 我使用SVN作为Eclipse的代码版本管理器,我使用Symphony2 服务器:在服务器中,我可以访问我的目录的shell,它使用Suhosin补丁运行php5.3.3-7+squeze15 本地:PHP/5.4.10 错误: AppKernel.php: 你们能帮帮忙吗?我查看了其他帖子,但它们不适合我的情况。确保文件系统以及类名和命名空间中的小写和大写字母正确。愚蠢的问题,但您是否遵循了部署S

我的应用程序在本地运行得很好,但当我将其上传到服务器时,无论我输入了什么有效的方向,它都会失败。 我使用SVN作为Eclipse的代码版本管理器,我使用Symphony2

服务器:在服务器中,我可以访问我的目录的shell,它使用Suhosin补丁运行php5.3.3-7+squeze15

本地:PHP/5.4.10

错误:

AppKernel.php:


你们能帮帮忙吗?我查看了其他帖子,但它们不适合我的情况。

确保文件系统以及类名和命名空间中的小写和大写字母正确。愚蠢的问题,但您是否遵循了部署Symfony2应用程序(包括缓存清理)的过程?而且:在过去,我在composer中遇到了一个问题,我在开发过程中安装/卸载了许多捆绑包,并且供应商目录已经损坏,我没有注意到。换句话说:如果您删除供应商目录中的所有内容并运行composer安装或composer更新,应用程序是否在本地运行?
FatalErrorException: Error: Class 'Cv\DBBundle\CvDBBundle' not found in enter code here/var/www/grupo36/public_html/symfony/app/AppKernel.php line 22
<?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 CV\DBBundle\CvDBBundle(), 
        );

        if (in_array($this->getEnvironment(), array('dev', 'test'))) {
            $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');
    }
}