line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# ABSTRACT: Role for engines |
2
|
|
|
|
|
|
|
$Dancer2::Core::Role::Engine::VERSION = '0.400000'; |
3
|
|
|
|
|
|
|
use Moo::Role; |
4
|
145
|
|
|
145
|
|
78397
|
use Dancer2::Core::Types; |
|
145
|
|
|
|
|
536
|
|
|
145
|
|
|
|
|
1254
|
|
5
|
145
|
|
|
145
|
|
59446
|
|
|
145
|
|
|
|
|
389
|
|
|
145
|
|
|
|
|
6400
|
|
6
|
|
|
|
|
|
|
with 'Dancer2::Core::Role::Hookable'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
has session => ( |
9
|
|
|
|
|
|
|
is => 'ro', |
10
|
|
|
|
|
|
|
isa => InstanceOf['Dancer2::Core::Session'], |
11
|
|
|
|
|
|
|
writer => 'set_session', |
12
|
|
|
|
|
|
|
clearer => 'clear_session', |
13
|
|
|
|
|
|
|
predicate => 'has_session', |
14
|
|
|
|
|
|
|
); |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
has config => ( |
17
|
|
|
|
|
|
|
is => 'ro', |
18
|
|
|
|
|
|
|
isa => HashRef, |
19
|
|
|
|
|
|
|
default => sub { {} }, |
20
|
|
|
|
|
|
|
); |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
has request => ( |
23
|
|
|
|
|
|
|
is => 'ro', |
24
|
|
|
|
|
|
|
isa => InstanceOf['Dancer2::Core::Request'], |
25
|
|
|
|
|
|
|
writer => 'set_request', |
26
|
|
|
|
|
|
|
clearer => 'clear_request', |
27
|
|
|
|
|
|
|
predicate => 'has_request', |
28
|
|
|
|
|
|
|
); |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=pod |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=encoding UTF-8 |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 NAME |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
Dancer2::Core::Role::Engine - Role for engines |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 VERSION |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
version 0.400000 |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 DESCRIPTION |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
This role is intended to be consumed by all engine roles. It contains all the |
48
|
|
|
|
|
|
|
shared logic for engines. |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
This role consumes the L<Dancer2::Core::Role::Hookable> role. |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head2 config |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
An HashRef that hosts the configuration bits for the engine. |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 AUTHOR |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
Dancer Core Developers |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
This software is copyright (c) 2022 by Alexis Sukrieh. |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
67
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=cut |