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

Dependency illegitimately listed under require-dev #411

Open
tvdijen opened this issue Oct 17, 2023 · 3 comments
Open

Dependency illegitimately listed under require-dev #411

tvdijen opened this issue Oct 17, 2023 · 3 comments

Comments

@tvdijen
Copy link
Contributor

tvdijen commented Oct 17, 2023

The following dependency are listed under require-dev in composer.json but turns out to be a hard dependency required to use the stepup-suite:

To be able to register and activate a token in selfservice, the following dependency is mandatory:

  • symfony/stopwatch
STEPUP-MIDDLEWARE[163023]: {"channel":"app","level":"CRITICAL","message":"Attempted to load class \"Stopwatch\" from namespace \"Symfony\\Component\\Stopwatch\".\nDid you forget a \"use\" statement for another namespace?","context":{"exception":{"class":"Symfony\\Component\\ErrorHandler\\Error\\ClassNotFoundError","message":"Attempted to load class \"Stopwatch\" from namespace \"Symfony\\Component\\Stopwatch\".\nDid you forget a \"use\" statement for another namespace?","code":0,"file":"/var/cache/stepup/middleware/ContainerQ6QC8oP/srcApp_KernelProdContainer.php:2043"}},"extra":{"server":"middleware.stepup-prd.xxx.nl","application":"middleware","request_id":"dca7608edb4be1fa13f4a5452306ee97"}}

Now, when I move symfony/stopwatch to the required dependencies, I can finish the registration proces... Installing Middleware without the --no-dev also solves this issues, but is of course undesireable for many reasons

@tvdijen tvdijen changed the title Dependencies illegitimate listed under require-dev Dependencies illegitimately listed under require-dev Oct 17, 2023
@phavekes
Copy link
Member

symfony/web-profiler-bundle should never be used in production

@MKodde Can you discover why this error occurs?

@tvdijen
Copy link
Contributor Author

tvdijen commented Oct 18, 2023

I see this when installing v5.0.10 with the --no-dev flag.

@tvdijen
Copy link
Contributor Author

tvdijen commented Oct 18, 2023

I've updated the issue description because some issues were caused by a missing environment variable. Another one was a session related issue, but the one issue above however is still valid.

@tvdijen tvdijen changed the title Dependencies illegitimately listed under require-dev Dependency illegitimately listed under require-dev Oct 18, 2023
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

2 participants