/[Frey]/trunk/lib/Frey/Mojo.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/Frey/Mojo.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 802 by dpavlin, Wed Dec 10 14:22:59 2008 UTC revision 803 by dpavlin, Wed Dec 10 22:44:52 2008 UTC
# Line 33  sub new { Line 33  sub new {
33      return $self;      return $self;
34  }  }
35    
36    
37  sub handler {  sub handler {
38          my ($self, $tx) = @_;          my ($self, $tx) = @_;
39    
40            # XXX fake app so static dispatcher won't die on us
41            {
42                    package Fake::App;
43                    use base 'Mojo::Transaction';
44                    sub app {
45                            my $self = shift;
46                            warn "## $self app ", @_;
47                            $self;
48                    }
49                    sub log {
50                            my $self = shift;
51                            warn "## $self log ",@_;
52                            return $self;
53                    }
54                    sub debug {
55                            my $self = shift;
56                            warn "## $self debug ",@_;
57                            return $self;
58                    }
59            }
60            bless $tx, 'Fake::App';
61    
62          if ( $self->static->dispatch($tx) ) {          if ( $self->static->dispatch($tx) ) {
63  #               warn "# static ",dump( $tx );  #               warn "# static ",dump( $tx );
64                  return $tx;                  return $tx;

Legend:
Removed from v.802  
changed lines
  Added in v.803

  ViewVC Help
Powered by ViewVC 1.1.26