2011-09-02 2 views
1

모두! 무슨 일 이니? 오늘은 내가 GitHub의Symfony2 : 버전 2.0.1 및 DoctrineMigrationsBundle

에서 내 커널 & 자동 로더 CONFIGS와
$ app/vendors install --reinstall 

Symfony2 (2.0.1)의 새로운 버전을 다시 설치하려고 :

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\DoctrineBundle\DoctrineBundle(), 
     new Symfony\Bundle\DoctrineFixturesBundle\DoctrineFixturesBundle(), 
     new Symfony\Bundle\DoctrineMigrationsBundle\DoctrineMigrationsBundle(), 
     ... 

$loader->registerNamespaces(array(
    'Symfony'   => array(__DIR__.'/../vendor/symfony/src', __DIR__.'/../vendor/bundles'), 
    'Sensio'   => __DIR__.'/../vendor/bundles', 
    'JMS'    => __DIR__.'/../vendor/bundles', 
    'Doctrine\\Common\\DataFixtures' => __DIR__.'/../vendor/doctrine-fixtures/lib', 
    'Doctrine\\DBAL\\Migrations' => __DIR__.'/../vendor/doctrine-migrations/lib', 
    'Doctrine\\Common' => __DIR__.'/../vendor/doctrine-common/lib', 
    'Doctrine\\DBAL' => __DIR__.'/../vendor/doctrine-dbal/lib', 
    'Doctrine'   => __DIR__.'/../vendor/doctrine/lib', 
    'Monolog'   => __DIR__.'/../vendor/monolog/src', 
    'Assetic'   => __DIR__.'/../vendor/assetic/src', 
    'Metadata'   => __DIR__.'/../vendor/metadata/src', 

을));

파일은 [Symfony2-루트]/

[doctrine-migrations] 
    git=http://github.com/doctrine/migrations.git 

[DoctrineMigrationsBundle] 
    git=http://github.com/symfony/DoctrineMigrationsBundle.git 

[doctrine-fixtures] 
    git=http://github.com/doctrine/data-fixtures.git 

[DoctrineFixturesBundle] 
    git=http://github.com/symfony/DoctrineFixturesBundle.git 
target=/bundles/Symfony/Bundle/DoctrineFixturesBundle 

을 deps하지만 이상한 오류가있어 : 치명적인 오류 : 클래스 '심포니 \ 번들 \ DoctrineMigrationsBundle \ DoctrineMigrationsBundle가'

에서 찾을 수 없습니다합니까 누군가가 무엇을 알고 진행되고있다 ? 감사합니다.

답변

3

해결되었습니다. 내 실수

나는 deps

[DoctrineMigrationsBundle] 
    git=http://github.com/symfony/DoctrineMigrationsBundle.git 
    target=/bundles/Symfony/Bundle/DoctrineMigrationsBundle 

대신

[DoctrineMigrationsBundle] 
    git=http://github.com/symfony/DoctrineMigrationsBundle.git 

이제 모든 것이 괜찮

에 한 줄을 추가하는 것을 잊었다.