X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FController%2FMessageDriven.pm;h=100d3f600be8a99ee0fb8d7bfa08ba0fc21560ab;hb=d7c364aac5ffb253fd9db5f3191eca30a1edb8c8;hp=c101df81046421861d5b21b3ee7897a32bd077ba;hpb=939aaa4607adfef8ac543476891d0117c46cdfa9;p=catagits%2FCatalyst-Engine-STOMP.git diff --git a/lib/Catalyst/Controller/MessageDriven.pm b/lib/Catalyst/Controller/MessageDriven.pm index c101df8..100d3f6 100644 --- a/lib/Catalyst/Controller/MessageDriven.pm +++ b/lib/Catalyst/Controller/MessageDriven.pm @@ -47,6 +47,25 @@ Dispatches to method named by the key C<< $c->stash->{request}->{type} >> Serializes the response from C<< $c->stash->{response} >> +=head1 CONFIGURATION + +In the configuration file add the following to set the value for a parameter + + + type_key foo + + +=head2 type_key + +The hash key the module will try to pull out the received message to call +within the controller. This defaults to 'type'. + +=head2 serializer + +The serializer used to serialiser/deserialise. See Data::Serializer to see +what is available. Defaults to YAML. JSON is anotther that is available. + + =cut class_type 'Data::Serializer';