Help php opcache.preload to load Swagger annotation class

This commit is contained in:
katin-dev 2020-04-28 17:40:51 +03:00
parent 97530a6eee
commit f450cd29fb

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;