A package with jobs

Posted 4 months ago by andreich1980

I'm creating a package that should use a job. The job looks like this

<?php

namespace Vendor\Package\Jobs;

use Illuminate\Foundation\Bus\Dispatchable;

class MyJob implements ShouldQueue {

    use Dispatchable, ...;

    ...
}

To test my package I did composer require --dev for some pachages like Illuminate/database, illuminate/config, etc. Now it seems that I need to pull the illuminate/foundation as well. But it doesn't work

$ composer require --dev illuminate/foundation
Using version ^1.1 for illuminate/foundation
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - illuminate/foundation v1.1.2 requires illuminate/config 1.1.* -> satisfiable by illuminate/config[v1.1.0] but these conflict with your requirements or minimum-stability.
    - illuminate/foundation v1.1.1 requires illuminate/config 1.1.* -> satisfiable by illuminate/config[v1.1.0] but these conflict with your requirements or minimum-stability.
    - illuminate/foundation v1.1.0 requires illuminate/config 1.1.* -> satisfiable by illuminate/config[v1.1.0] but these conflict with your requirements or minimum-stability.
    - Installation request for illuminate/foundation ^1.1 -> satisfiable by illuminate/foundation[v1.1.0, v1.1.1, v1.1.2].


Installation failed, reverting ./composer.json to its original content.

I looked it up and noticed that the package is marked as abandoned.

How can I solve this?

Please sign in or create an account to participate in this conversation.