mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-09 02:59:27 +03:00
18 lines
268 B
PHP
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;
|
|
}
|
|
}
|