2
我试图在Symfony 2.1上安装PropelBundle分支1.1。我遵循手动安装的说明,但不知道在哪里注册命名空间。在Symfony 2.1上安装PropelBundle
现在我收到此错误信息: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;
我要补充的东西自动加载.PHP?
可能明显一些,但你应该地步“要求“部分应该被添加,在这种情况下,composer.json。 – darksoulsong
它应该在Symfony/composer.json中 – califrench