Merge pull request #1619 from katin-dev/fix_preloader

Help opcache.preload to load Swagger annotation class
This commit is contained in:
Guilhem Niot 2020-05-01 21:30:45 +02:00 committed by GitHub
commit be89b2be6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,6 +25,9 @@ use Swagger\Annotations as SWG;
use Swagger\Context;
use Symfony\Component\Routing\RouteCollection;
// Help opcache.preload discover Swagger\Annotations\Swagger
class_exists(SWG\Swagger::class);
final class SwaggerPhpDescriber implements ModelRegistryAwareInterface
{
use ModelRegistryAwareTrait;