Reference
C
Class

ApiPlatform\Symfony\Bundle\SwaggerUi\SwaggerUiAction

Displays the swaggerui interface.

class ApiPlatform\Symfony\Bundle\SwaggerUi\SwaggerUiAction
{
    public __construct(ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, null|Twig\Environment $twig, Symfony\Component\Routing\Generator\UrlGeneratorInterface $urlGenerator, Symfony\Component\Serializer\Normalizer\NormalizerInterface $normalizer, ApiPlatform\OpenApi\Factory\OpenApiFactoryInterface $openApiFactory, ApiPlatform\OpenApi\Options $openApiOptions, ApiPlatform\Symfony\Bundle\SwaggerUi\SwaggerUiContext $swaggerUiContext, array $formats, null|string $oauthClientId, null|string $oauthClientSecret, bool $oauthPkce)
    public __invoke(Symfony\Component\HttpFoundation\Request $request): Symfony\Component\HttpFoundation\Response
}
class ApiPlatform\Symfony\Bundle\SwaggerUi\SwaggerUiAction
{
    public __construct(ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, null|Twig\Environment $twig, Symfony\Component\Routing\Generator\UrlGeneratorInterface $urlGenerator, Symfony\Component\Serializer\Normalizer\NormalizerInterface $normalizer, ApiPlatform\OpenApi\Factory\OpenApiFactoryInterface $openApiFactory, ApiPlatform\OpenApi\Options $openApiOptions, ApiPlatform\Symfony\Bundle\SwaggerUi\SwaggerUiContext $swaggerUiContext, array $formats, null|string $oauthClientId, null|string $oauthClientSecret, bool $oauthPkce)
    public __invoke(Symfony\Component\HttpFoundation\Request $request): Symfony\Component\HttpFoundation\Response
}

Methods

__construct

public __construct(ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, null|Twig\Environment $twig, Symfony\Component\Routing\Generator\UrlGeneratorInterface $urlGenerator, Symfony\Component\Serializer\Normalizer\NormalizerInterface $normalizer, ApiPlatform\OpenApi\Factory\OpenApiFactoryInterface $openApiFactory, ApiPlatform\OpenApi\Options $openApiOptions, ApiPlatform\Symfony\Bundle\SwaggerUi\SwaggerUiContext $swaggerUiContext, array $formats, null|string $oauthClientId, null|string $oauthClientSecret, bool $oauthPkce)
public __construct(ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, null|Twig\Environment $twig, Symfony\Component\Routing\Generator\UrlGeneratorInterface $urlGenerator, Symfony\Component\Serializer\Normalizer\NormalizerInterface $normalizer, ApiPlatform\OpenApi\Factory\OpenApiFactoryInterface $openApiFactory, ApiPlatform\OpenApi\Options $openApiOptions, ApiPlatform\Symfony\Bundle\SwaggerUi\SwaggerUiContext $swaggerUiContext, array $formats, null|string $oauthClientId, null|string $oauthClientSecret, bool $oauthPkce)

Parameters

resourceMetadataFactoryApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface
twigTwig\Environment
urlGeneratorSymfony\Component\Routing\Generator\UrlGeneratorInterface
normalizerSymfony\Component\Serializer\Normalizer\NormalizerInterface
openApiFactoryApiPlatform\OpenApi\Factory\OpenApiFactoryInterface
openApiOptionsApiPlatform\OpenApi\Options
swaggerUiContextApiPlatform\Symfony\Bundle\SwaggerUi\SwaggerUiContext
formatsarray
oauthClientIdstring
oauthClientSecretstring
oauthPkcebool

__invoke

public __invoke(Symfony\Component\HttpFoundation\Request $request): Symfony\Component\HttpFoundation\Response
public __invoke(Symfony\Component\HttpFoundation\Request $request): Symfony\Component\HttpFoundation\Response

Parameters

requestSymfony\Component\HttpFoundation\Request

Returns

Symfony\Component\HttpFoundation\Response

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop