Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add help for projects that requires "minimum-stability": "stable" #11

Open
oliverskawronek opened this issue Feb 5, 2024 · 0 comments

Comments

@oliverskawronek
Copy link

In a project with minimum-stability: stable (which is the default stability of a new Laravel project)

composer require hafael/azure-mailer-driver is not enough to install the latest v0.3.0. Composer will fallback to v0.2.2.

The problem is, that the dependend package symfony/azure-mailer has currently no stable version.

"symfony/azure-mailer": "^7.0"

When I try to explicit install v0.3.0 this happens:

composer require hafael/azure-mailer-driver:v0.3.0
./composer.json has been updated
Running composer update hafael/azure-mailer-driver
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires hafael/azure-mailer-driver v0.3.0 -> satisfiable by hafael/azure-mailer-driver[v0.3.0].
    - hafael/azure-mailer-driver v0.3.0 requires symfony/azure-mailer ^7.0 -> found symfony/azure-mailer[7.1.x-dev] but it does not match your minimum-stability.

Solution which can be documented in the README.md
Allow unstable version of symfony/azure-mailer first:
composer require symfony/azure-mailer:@dev
Now its fine to run
composer require hafael/azure-mailer-driver
which install v0.3.0

But I get one more problem at runtime during a mail send:

You cannot use \"Symfony\\Component\\Mailer\\Transport\\AbstractHttpTransport\" as the HttpClient component is not installed. Try running \"composer require symfony/http-client\

So yes, I have to
composer require symfony/http-client
And now it works. I think this could also part of your README.md.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant