mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-09 02:59:27 +03:00
Merge pull request #1619 from katin-dev/fix_preloader
Help opcache.preload to load Swagger annotation class
This commit is contained in:
commit
be89b2be6c
@ -25,6 +25,9 @@ use Swagger\Annotations as SWG;
|
|||||||
use Swagger\Context;
|
use Swagger\Context;
|
||||||
use Symfony\Component\Routing\RouteCollection;
|
use Symfony\Component\Routing\RouteCollection;
|
||||||
|
|
||||||
|
// Help opcache.preload discover Swagger\Annotations\Swagger
|
||||||
|
class_exists(SWG\Swagger::class);
|
||||||
|
|
||||||
final class SwaggerPhpDescriber implements ModelRegistryAwareInterface
|
final class SwaggerPhpDescriber implements ModelRegistryAwareInterface
|
||||||
{
|
{
|
||||||
use ModelRegistryAwareTrait;
|
use ModelRegistryAwareTrait;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user