| 1 | package Dancer2::Plugin::FormValidator::Role::Extension; | ||
| 2 | |||
| 3 | 3 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 3 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 3 | ▶ | use Moo::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 3 | ▶ | use Types::Standard qw(InstanceOf HashRef); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 3 | ▶ | use namespace::clean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 3 | has plugin => ( | |
| 11 | is => 'ro', | ||
| 12 | isa => InstanceOf['Dancer2::Plugin::FormValidator'], | ||
| 13 | predicate => 1, | ||
| 14 | ); | ||
| 15 | |||
| 16 | 3 | has config => ( | |
| 17 | is => 'ro', | ||
| 18 | isa => HashRef, | ||
| 19 | predicate => 1, | ||
| 20 | ); | ||
| 21 | |||
| 22 | 3 | requires 'validators'; | |
| 23 | |||
| 24 | 3 | 1; | |