-
-
Notifications
You must be signed in to change notification settings - Fork 388
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
error Class \"OpenApi\\Generator\" not found #520
Comments
Same for me after |
yes after composer update |
same error after update |
It has to do with the package zircode/swagger-php. darkaoline/l5-swagger requires "zircode/swagger-php where the OpenApi/Generator should be. For any reasons, the Generator Class isn't available in the installed version of zircode/swagger-php, which will be installed as a dependency of darkaonline/l5-swagger. Installing the lastest 3.x version, (which is 3.3.7) of zircode/swagger-php from the projects composer.json fixes this issue as a workaround (Tested with 8.1.0): Add this to your composer.json and run composer update:
|
Good answer. Looks like a bug here as L5 only requires |
it worked for me |
please update the package and release fixed version @collegeman @DarkaOnLine @verwilst @StyleCIBot @ashish-khokhar |
@Rasoul-Karimi what is wrong with package requirements? We have https://github.com/DarkaOnLine/L5-Swagger/blob/master/composer.json#L24 |
@DarkaOnLine Required @OA\Info() not found i dont need to get a new error! :) i want to only fix this one: error Class "OpenApi\Generator" not found |
Have you checked this for |
Installed "darkaonline/l5-swagger": "8.1", because latest version 8.5 - return "Required https://github.com/OA\Info() not found" /**
in my class Controller!!! EDITED |
facing Error "Required @OA\Info() not found" its ttok my 1 day. at vendor\zircote\swagger-php\src\Loggers\DefaultLogger.php:31 php: 8.1.13 |
Did you solve this? |
Description:
i get this error : Class "OpenApi\Generator" not found
I remove the vendor directory and composer install again but not working
exception : "Error" file : "vendor/darkaonline/l5-swagger/src/Generator.php" line : 176 message : "Class \"OpenApi\\Generator\" not found"
The text was updated successfully, but these errors were encountered: