symfony icon indicating copy to clipboard operation
symfony copied to clipboard

Invalid definition for service "Auth0\Symfony\Controllers\AuthenticationController":

Open mkldevops opened this issue 1 year ago • 1 comments
trafficstars

Checklist

  • [X] I have looked into the Readme and have not found a suitable solution or answer.
  • [X] I have searched the issues and have not found a suitable solution or answer.
  • [X] I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • [X] I agree to the terms within the Auth0 Code of Conduct.

Description

When I run following command :

APP_ENV=dev php console lint:container 

I have this error:

 [ERROR] Invalid definition for service "Auth0\Symfony\Controllers\AuthenticationController":                           
         "Auth0\Symfony\Controllers\AuthenticationController::__construct()" requires 3 arguments, 2 passed.            

Reproduction

  1. composer req auth0/symfony
  2. add on bundle on bundles.php file
  3. run the commade php bin/console lint:container

Additional context

No response

jwt-auth-bundle version

5.2.3

Symfony version

6.4

PHP version

8.3

mkldevops avatar Jan 19 '24 18:01 mkldevops

@evansims any chance you can approve/merge this PR?

abunch avatar Mar 16 '24 01:03 abunch

Is there a way I can manually apply this patch to my installation?

edent avatar Jun 19 '24 07:06 edent

@edent you can try switching over to elvi/auth0-symfony for now, which is the fork of this repository but with the open PRs merged in. Let's hope this official bundle catches up with the world eventually and we can all come back to use it again.

mkilmanas avatar Jun 19 '24 07:06 mkilmanas

The fix has shipped as part of 5.3.0; thanks for your work on this, as well as your other contributions, @mkilmanas. Much appreciated!

evansims avatar Jun 24 '24 20:06 evansims