NelmioApiDocBundle/Util/SetsContextTrait.php
Guilhem Niot fd45120d5c
Catch more precise exception in DocumentationController (#2027)
* Catch more precise exception in DocumentationController

* cs

* Fix tests
2022-09-03 13:18:46 +02:00

18 lines
268 B
PHP

<?php
namespace Nelmio\ApiDocBundle\Util;
use OpenApi\Context;
/**
* @internal
*/
trait SetsContextTrait
{
private function setContext(?Context $context): void
{
// zircote/swagger-php ^4.0
\OpenApi\Generator::$context = $context;
}
}