package Catalyst::Plugin::Browser; # ABSTRACT: DEPRECATED: Browser Detection use Moose::Role; use CatalystX::RoleApplicator (); use namespace::autoclean; after setup_finalize => sub { my ($app) = @_; # yeah, i know. sue me. CatalystX::RoleApplicator->init_meta(for_class => $app); $app->apply_request_class_roles(qw/ Catalyst::TraitFor::Request::BrowserDetect /); }; 1; =head1 SYNOPSIS use Catalyst qw[Browser]; if ( $c->request->browser->windows && $c->request->browser->ie ) { # do something } =head1 DEPRECATED This module should no longer be used in new applications. L is the replacement. =head1 DESCRIPTION Extends your applications request class with browser detection. =head1 METHODS =over 4 =item browser Returns an instance of L, which lets you get information of the client's user agent. =back =head1 SEE ALSO L, L, L. =cut