Skip to content

struct Athena::Routing::Listeners::View
inherits Struct #

Listens on the ART::Events::View event to convert a non ART::Response into an ART::Response. Allows creating format agnostic controllers by allowing them to return format agnostic data that is later used to render the content in the expected format.

See the negotiation component for more information.

Included modules

Athena::EventDispatcher::EventListenerInterface

Class methods#

.subscribed_events : AED::SubscribedEvents #

View source

Methods#

#call(event : ART::Events::View, dispatcher : AED::EventDispatcherInterface) : Nil #

View source