line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Mojo::Events; |
2
|
1
|
|
|
1
|
|
67487
|
use Mojo::Base -base; |
|
1
|
|
|
|
|
195362
|
|
|
1
|
|
|
|
|
9
|
|
3
|
|
|
|
|
|
|
|
4
|
1
|
|
|
1
|
|
646
|
use Mojo::Events::Dispatcher; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
8
|
|
5
|
1
|
|
|
1
|
|
554
|
use Mojo::Events::Listeners; |
|
1
|
|
|
|
|
15
|
|
|
1
|
|
|
|
|
7
|
|
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
35
|
use Mojo::Server; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = '0.0.1'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
has app => sub { Mojo::Server->new->build_app('Mojo::HelloWorld') }, weak => 1; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
has dispatcher => sub { |
14
|
|
|
|
|
|
|
return Mojo::Events::Dispatcher->new(app => shift->app); |
15
|
|
|
|
|
|
|
}; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
has listeners => sub { |
18
|
|
|
|
|
|
|
my $self = shift; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
return Mojo::Events::Listeners->new(app => $self->app, namespaces => $self->namespaces); |
21
|
|
|
|
|
|
|
}; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |