Catalyst-Plugin-I18N-Request
view release on metacpan or search on metacpan
lib/Catalyst/Plugin/I18N/Request.pm view on Meta::CPAN
Overrides Catalyst's C<prepare> method to push the context object to the request
object.
=cut
sub prepare {
my $c = shift;
$c = $c->next::method( @_ );
unless( $c->request->{ _context } ) {
Scalar::Util::weaken( $c->request->{ _context } = $c );
}
return $c;
}
=head2 uri_for ( $path [, @args ] [, \%query_values ] )
Calls the native uri_for, but proceeds to localize the resulting path
and query values.
( run in 0.276 second using v1.01-cache-2.11-cpan-65fba6d93b7 )