FatalErrorException:KnpSnappyBundle'未找到

时间:2015-09-15 11:33:51

标签: class symfony

我正在使用symfony2,我在我的app \ AppKernel.php中有流畅的代码行

public function registerBundles()
{
    $bundles = array(
        new Knp\Bundle\SnappyBundle\KnpSnappyBundle(),
        new FOS\UserBundle\FOSUserBundle(),
        new FOS\RestBundle\FOSRestBundle(),
        new FOS\CommentBundle\FOSCommentBundle()
   );

   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;
}

我在第4行遇到了"FatalErrorException: Error: Class 'Knp\Bundle\SnappyBundle\KnpSnappyBundle' not found in E:\xampp\htdocs\humanfactor\app\AppKernel.php line 4"

的错误

我还在vendor来自https://github.com/KnpLabs/KnpSnappyBundleVendor - KnpSnappyBundle 目录中放了一个快活的lib,但我仍然收到此错误。

KnpSnappyBundle结构

{{1}}

由于

0 个答案:

没有答案