Advertisement
Guest User

Untitled

a guest
Oct 7th, 2011
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.27 KB | None | 0 0
  1. package Plugin::CacheHelpers;
  2. use Mojo::Base 'Mojolicious::Plugin';
  3.  
  4. use CHI;
  5. use Data::Dumper;
  6.  
  7. sub register
  8. {
  9.     my ($self, $app) = @_;
  10.  
  11.     $app->hook(
  12.     before_dispatch => sub
  13.     {
  14.         my $self = shift;
  15.  
  16.         $self->log->debug("hello");
  17.     });
  18. }
  19.  
  20. 1;
  21.  
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement