我正在尝试关注可靠的 Jeffrey Wrays 的 Laracast - https://laracasts.com/lessons/ironclad-queues
但是在尝试运行 que 命令时遇到问题。我不断收到错误:
{"error":{"type":"Symfony\Component\Debug\Exception\FatalErrorException","message":"找不到类 'IronMQ'","file":"C:\xampp\htdocs\theedstore-co -uk\_____vendor\laravel\framework\src\Illuminate\Queue\Connectors\IronConnector.php","line":49}}
我遵循 Iron_MQ Git hub 所说的:
如果您使用 laravel 并看到“找不到类 IronMQ”错误,请将 iron_mq 版本设置为 1.* 并安装依赖项
我的 compser.json 文件如下所示:
"require": {
"laravel/framework": "4.2.*",
"way/generators": "~2.0",
"zizaco/confide": "~4.3@dev",
"way/database": "dev-master",
"hugofirth/mailchimp": "2.0.*",
"barryvdh/laravel-dompdf": "0.4.*",
"torann/currency": "dev-master",
"thomaswelton/laravel-gravatar": "0.1.x",
"intervention/image": "dev-master",
"laracasts/flash": "1.0",
"moltin/currency": "1.0.*@dev",
"moltin/tax": "dev-master",
"moltin/cart": "dev-master",
"moltin/laravel-cart": "dev-master",
"nqxcode/zendsearch": "dev-master",
"nqxcode/laravel-lucene-search": "dev-master",
"philipbrown/worldpay": "~3.0",
"guzzle/guzzle": "3.8.*@dev",
"vinkla/vimeo": "~1.0",
"iron-io/iron_core": "1.*",
"iron-io/iron_mq": "1.*"
我什至尝试删除 Vendor 文件夹和 .lock 文件,但仍然出现错误。
有没有人有更多的建议。我只是无法让 Iron.io 在我的项目中工作。
干杯