我正在尝试在 Symfony 2.1 上安装 PropelBundle 分支 1.1。我按照手动安装的说明进行操作,但不确定在哪里注册命名空间。
现在我收到此错误消息:Fatal error: Class 'Propel\PropelBundle\PropelBundle' not found in D:\www-files\Symfony\app\AppKernel.php on line 22
第 22 行如下所示:new Propel\PropelBundle\PropelBundle()
我的 autoload.php 看起来像这样:
use Doctrine\Common\Annotations\AnnotationRegistry;
$loader = require __DIR__.'/../vendor/autoload.php';
// intl
if (!function_exists('intl_get_error_code')) {
require_once __DIR__.'/../vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/stubs/functions.php';
$loader->add('', __DIR__.'/../vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/stubs');
}
AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
return $loader;
我应该在 autoload.php 中添加一些东西吗?