Class 找不到 Iron MQ - Laravel 4.2

Class Iron MQ Not Found - Laravel 4.2

我正在尝试关注可靠的 Jeffrey Wrays 的 Laracast - https://laracasts.com/lessons/ironclad-queues

但是在尝试 运行 que 命令时遇到问题。我不断收到错误消息:

{"error":{"type":"Symfony\Component\Debug\Exception\FatalErrorException","message":"Class 'IronMQ' not found","file":"C:\xampp\htdocs\theedstore-co-uk\_____vendor\laravel\framework\src\Illuminate\Queue\Connectors\IronConnector.php","line":49}}

我遵循了 Iron_MQ Git 中心所说的内容:

If you're using laravel and see "Class IronMQ not found" error set iron_mq version to 1.* and install dependencies

我的 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 在我的项目中工作。

干杯

我也遇到过同样的问题,但是用这个版本解决了

"iron-io/iron_mq": "~3.0"

您必须删除 composer.lock 和 运行:

composer update