line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Dancer2::Core::Role::Handler; |
2
|
|
|
|
|
|
|
# ABSTRACT: Role for Handlers |
3
|
|
|
|
|
|
|
$Dancer2::Core::Role::Handler::VERSION = '0.400001'; |
4
|
145
|
|
|
145
|
|
1185224
|
use Moo::Role; |
|
145
|
|
|
|
|
553
|
|
|
145
|
|
|
|
|
975
|
|
5
|
145
|
|
|
145
|
|
69814
|
use Dancer2::Core::Types; |
|
145
|
|
|
|
|
451
|
|
|
145
|
|
|
|
|
1363
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
requires 'register'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
has app => ( |
10
|
|
|
|
|
|
|
is => 'ro', |
11
|
|
|
|
|
|
|
isa => InstanceOf ['Dancer2::Core::App'], |
12
|
|
|
|
|
|
|
weak_ref => 1, |
13
|
|
|
|
|
|
|
); |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
1; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
__END__ |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=pod |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=encoding UTF-8 |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head1 NAME |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
Dancer2::Core::Role::Handler - Role for Handlers |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 VERSION |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
version 0.400001 |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head2 app |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
Contain an object of class L<Dancer2::Core::App>. |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 REQUIREMENTS |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
This role requires the method C<register> to be implemented. |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 AUTHOR |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
Dancer Core Developers |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
This software is copyright (c) 2023 by Alexis Sukrieh. |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
50
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=cut |