Skip to content

class Athena::Framework::AnnotationResolver
inherits Reference #

Allows resolving custom annotations defined on an ATH::Controller class or ATH::Action method, or one of its parameters.

Methods#

#action_annotations(request : AHTTP::Request) : ADI::AnnotationConfigurations#

Returns an ADI::AnnotationConfigurations instance representing the custom annotations applied on an ATH::Controller class or ATH::Action method. An empty instance is returned if there are no custom annotations applied.

View source

#action_parameter_annotations(request : AHTTP::Request, parameter_name : String) : ADI::AnnotationConfigurations#

Returns an ADI::AnnotationConfigurations instance representing the custom annotations applied on an ATH::Action method parameter. An empty instance is returned if there are no custom annotations applied.

View source