line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Prancer::Plugin; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
1264
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
31
|
|
4
|
1
|
|
|
1
|
|
3
|
use warnings FATAL => 'all'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
29
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
8
|
use version; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
5
|
|
7
|
|
|
|
|
|
|
our $VERSION = '1.04'; |
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
55
|
use Prancer::Core; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
73
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub config { |
12
|
0
|
0
|
|
0
|
1
|
|
die "core has not been initialized\n" unless Prancer::Core->initialized(); |
13
|
0
|
|
|
|
|
|
return Prancer::Core->new->config(); |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
1; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 NAME |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
Prancer::Plugin |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 SYNOPSIS |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
This should be the base class for all plugins used with Prancer. It provides |
25
|
|
|
|
|
|
|
the convenience methods shown below to plugins that inherit from it. |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 METHODS |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=over |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=item config |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
Returns the application's current configuration. See L for |
34
|
|
|
|
|
|
|
more details on how to use this method. This method be called statically or |
35
|
|
|
|
|
|
|
as an instance method. This method will C if L has not |
36
|
|
|
|
|
|
|
been initialized. |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=back |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=cut |