mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
fd45120d5c
* Catch more precise exception in DocumentationController * cs * Fix tests
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;
|
|
}
|
|
}
|