SwaggerLume icon indicating copy to clipboard operation
SwaggerLume copied to clipboard

[Lumen 5.7] Class 'SwaggerLume\ServiceProvider' not found

Open maglor opened this issue 6 years ago • 7 comments

I have an error while installing SwaggerLume to Limen 5.7 bootstrap/app.php:

$app->configure('swagger-lume');
$app->register(\SwaggerLume\ServiceProvider::class);

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

maglor avatar Nov 03 '18 12:11 maglor

What kind of error :)

DarkaOnLine avatar Nov 05 '18 06:11 DarkaOnLine

When i try to generate docs, i got an error. It's 5.7 Command => php artisan swagger-lume:generate

Regenerating docs
In Logger.php line 39:
  Required @OA\Info() not found

furkankadioglu avatar Nov 20 '18 19:11 furkankadioglu

@furkankadioglu Are you solve this issue?

AmrAbdalrahman avatar Dec 11 '18 13:12 AmrAbdalrahman

@OA\Info() is a required annotation. Please read OpenApi documentation

DarkaOnLine avatar Dec 11 '18 13:12 DarkaOnLine

i got this error Call to undefined method Laravel\Lumen\Application::group()

after add $app->register(\SwaggerLume\ServiceProvider::class); at bootstrap/app.php

laravel 5.8

myusufid avatar Apr 13 '19 08:04 myusufid

@furkankadioglu You have to use @OA\Info like that:

@OA\Info( title="Auth Controller", version="test")

Like @DarkaOnLine , you must read OpenApi documentation for understand how and where to put these annotations on your code.

ghost avatar Jan 06 '20 17:01 ghost

install again : composer require "darkaonline/swagger-lume:8.*"

AmirHoseinBahrami avatar Aug 29 '21 14:08 AmirHoseinBahrami