我做了所有步骤
https://github.com/Gregwar/CaptchaBundle
添加到 composer.json 并更新,config.yml 启用了包但我收到致命错误
Fatal error: Class 'Gregwar\CaptchaBundle\GregwarCaptchaBundle' not found in /var/www/Surgery/app/AppKernel.php on line 26 Call Stack: 0.0000 228784 1. {main}() /var/www/Surgery/web/app_dev.php:0 0.0037 1211816 2. Symfony\Component\HttpKernel\Kernel->handle() /var/www/Surgery/web/app_dev.php:25 0.0037 1212000 3. Symfony\Component\HttpKernel\Kernel->boot() /var/www/Surgery/app/bootstrap.php.cache:614 0.0037 1212160 4. Symfony\Component\HttpKernel\Kernel->initializeBundles() /var/www/Surgery/app/bootstrap.php.cache:569 0.0037 1212864 5. AppKernel->registerBundles() /var/www/Surgery/app/bootstrap.php.cache:797
更新我的ubuntu后我有一些小问题。我使用 sf 2.1.6。