#
# Catlyst::Action::Deserialize
-# Created by: Adam Jacob, Marchex, <adam@marchex.com>
+# Created by: Adam Jacob, Marchex, <adam@hjksolutions.com>
#
# $Id$
use base 'Catalyst::Action::SerializeBase';
use Module::Pluggable::Object;
+use MRO::Compat;
__PACKAGE__->mk_accessors(qw(plugins));
}
}
- $self->NEXT::execute(@_);
+ $self->maybe::next::method(@_);
return 1;
}
package Foo::Controller::Bar;
__PACKAGE__->config(
- serialize => {
- 'default' => 'text/x-yaml',
- 'stash_key' => 'rest',
- 'map' => {
- 'text/x-yaml' => 'YAML',
- 'text/x-data-dumper' => [ 'Data::Serializer', 'Data::Dumper' ],
- },
- }
+ 'default' => 'text/x-yaml',
+ 'stash_key' => 'rest',
+ 'map' => {
+ 'text/x-yaml' => 'YAML',
+ 'text/x-data-dumper' => [ 'Data::Serializer', 'Data::Dumper' ],
+ },
);
sub begin :ActionClass('Deserialize') {}
The serializer is selected by introspecting the requests content-type
header.
-It requires that your Catalyst controller have a "serialize" entry
-in it's configuration. See L<Catalyst::Action::Serialize> for the details.
-
The specifics of deserializing each content-type is implemented as
a plugin to L<Catalyst::Action::Deserialize>. You can see a list
of currently implemented plugins in L<Catalyst::Controller::REST>.