2012-06-03 3 views
1

최근 S2에서 놀아보기 시작했습니다.Symfony2.0.15 Doctrine-Fixtures 윈도우 커맨드 라인 치명적인 오류

Fatal error: Class 'Doctrine\Bundle\DoctrineBundle\Command\DoctrineCommand' not found in C:\xampp\htdocs\blog-sf2\vendor\bundles\Doctrine\Bundle\FixturesBundle\Command\LoadDataFixturesDoctrineCommand.php on line 40

나는 : 얼마 전 그러나 내가 여기

콘솔에서 php app/console doctrine:fixtures:load을 실행할 때 내가 갖는 메시지이며, 교리 데이터기구의 세대 페이지에 붙어있어, 온라인 Symfony2 Blog tutorial 시작 정말 (내가 ?? 어떻게 든 CAN OR)

나는 FixtureBundles의 최신 버전을 다운로드 한, 거기에 붙어 나는 윈도우 7를 실행하고, 그래서 정말 이전 버전에서 종속성을 끌어 deps 파일을 사용할 수 없습니다 교리 교재.

정말 감사합니다!

답변

2

당신이 읽을 필요가 있다고 생각합니다 the installation documentation of this bundle for the 2.0 branch "deps"파일을 실제로 사용하지 마십시오. bin/vendors 스크립트는 그것을 사용하고 자식을 사용합니다. 그래서 당신이 "deps"를 사용하기 위해해야 ​​할 일은 install git (그리고 btw, git-bash를 설치하면 훨씬 좋은 터미널을 얻을 수 있습니다)입니다.

+0

안녕하세요, 감사합니다. 실제로 Cygwin을 사용하고 있으므로 Git을 설치해야합니다. (확인 된 지침이므로) 내일 결과에 대해 알려 드리겠습니다. (해당 링크에 대해 감사 드리며, '[교리 비품] 자식 = HTTP : //github.com/doctrine/data-fixtures.git [DoctrineFixturesBundle를 내가 제대로 작동까지 힘내 및 실행) – alchemication

+0

조명기를 얻을 첫 번째 단계는 포함했다 ] 자식 = HTTP는 다음 deps 파일에 심포니/번들/DoctrineFixturesBundle 버전 = 원산지// 2.0' 을 대상 =/번들을 //github.com/doctrine/DoctrineFixturesBundle.git 한 다음 Windows의 경우 것은 힘내를 설치합니다. 그런 다음 콘솔에서'php bin/vendors install --reinstall'을 실행하고, autoload와 appKernel을 업데이트하십시오. 여기서 모든 것이 FINE입니다! 감사! – alchemication