| 1 |
package Dancer2::Core::Role::Handler; |
| 2 |
# ABSTRACT: Role for Handlers |
| 3 |
$Dancer2::Core::Role::Handler::VERSION = '2.2.2'; |
| 4 |
use Moo::Role; |
| 5 |
use Dancer2::Core::Types; |
| 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 2.2.2 |
| 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) 2026 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 |