Classes
OpenApiPhpDescriber
in package
Uses
SetsContextTrait
Table of Contents
- $annotationReader : mixed
- $controllerReflector : mixed
- $logger : mixed
- $overwrite : mixed
- $routeCollection : mixed
- __construct() : mixed
- describe() : mixed
- getAttributesAsAnnotation() : array<string|int, AbstractAnnotation>
- getMethodsToParse() : Generator
- getSupportedHttpMethods() : array<string|int, mixed>
- normalizePath() : string
Properties
$annotationReader
private
mixed
$annotationReader
$controllerReflector
private
mixed
$controllerReflector
$logger
private
mixed
$logger
$overwrite
private
mixed
$overwrite
$routeCollection
private
mixed
$routeCollection
Methods
__construct()
public
__construct(RouteCollection $routeCollection, ControllerReflector $controllerReflector, Reader $annotationReader, LoggerInterface $logger[, bool $overwrite = false ]) : mixed
Parameters
- $routeCollection : RouteCollection
- $controllerReflector : ControllerReflector
- $annotationReader : Reader
- $logger : LoggerInterface
- $overwrite : bool = false
Return values
mixed —describe()
public
describe(OpenApi $api) : mixed
Parameters
- $api : OpenApi
Return values
mixed —getAttributesAsAnnotation()
private
getAttributesAsAnnotation(ReflectionClass|ReflectionMethod $reflection, Context $context) : array<string|int, AbstractAnnotation>
Parameters
- $reflection : ReflectionClass|ReflectionMethod
- $context : Context
Return values
array<string|int, AbstractAnnotation> —getMethodsToParse()
private
getMethodsToParse() : Generator
Return values
Generator —getSupportedHttpMethods()
private
getSupportedHttpMethods(Route $route) : array<string|int, mixed>
Parameters
- $route : Route
Return values
array<string|int, mixed> —normalizePath()
private
normalizePath(string $path) : string
Parameters
- $path : string