使用Beanstalk在Laravel 4中找不到"Pheanstalk_Pheanstalk"类

Ant*_*ony 5 php beanstalkd laravel pheanstalk

我正在尝试运行beanstalk并且在尝试运行Queue :: push()时遇到异常:

Class 'Pheanstalk_Pheanstalk' not found
Run Code Online (Sandbox Code Playgroud)

我已经运行了composer require pda/pheanstalk,甚至还重新生成了我的自动加载文件.

它发生在./vendor/laravel/framework/src/Illuminate/Queue/Connectors/BeanstalkdConnector.php

有任何想法吗?

Jer*_*ale 9

在composer.json中,替换pda/pheanstalk需求行

"pda/pheanstalk": "2.0.*"
Run Code Online (Sandbox Code Playgroud)

composer update
Run Code Online (Sandbox Code Playgroud)

警告:还将更新Laravel.

资料来源:http://laravel.io/forum/07-17-2014-class-pheanstalk-pheanstalk-not-found


Ant*_*ony 2

漠视。在https://github.com/laravel/framework/issues/746找到答案。显然最新版本已经重新组织了什么的。