| 1 | package Dancer2::Core::Role::Engine; | ||
| 2 | # ABSTRACT: Role for engines | ||
| 3 | 182 | $Dancer2::Core::Role::Engine::VERSION = '2.3.0'; | |
| 4 | 182 | ▶ | use Moo::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 182 | ▶ | use Dancer2::Core::Types; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 182 | with 'Dancer2::Core::Role::Hookable'; | |
| 8 | |||
| 9 | 182 | has session => ( | |
| 10 | is => 'ro', | ||
| 11 | isa => InstanceOf['Dancer2::Core::Session'], | ||
| 12 | writer => 'set_session', | ||
| 13 | clearer => 'clear_session', | ||
| 14 | predicate => 'has_session', | ||
| 15 | ); | ||
| 16 | |||
| 17 | has config => ( | ||
| 18 | is => 'ro', | ||
| 19 | isa => HashRef, | ||
| 20 | 559 | ▶ | default => sub { {} }, |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 21 | 182 | ); | |
| 22 | |||
| 23 | 182 | has request => ( | |
| 24 | is => 'ro', | ||
| 25 | isa => InstanceOf['Dancer2::Core::Request'], | ||
| 26 | writer => 'set_request', | ||
| 27 | clearer => 'clear_request', | ||
| 28 | predicate => 'has_request', | ||
| 29 | ); | ||
| 30 | |||
| 31 | 182 | 1; | |
| 32 | |||
| 33 | __END__ | ||