Skip to content

Commit

Permalink
Merge pull request #1619 from katin-dev/fix_preloader
Browse files Browse the repository at this point in the history
Help opcache.preload to load Swagger annotation class
  • Loading branch information
GuilhemN authored May 1, 2020
2 parents e39b7c5 + f450cd2 commit be89b2b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Describer/SwaggerPhpDescriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
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;
Expand Down

0 comments on commit be89b2b

Please sign in to comment.