App-Standby
view release on metacpan or search on metacpan
lib/App/Standby/Frontend.pm view on Meta::CPAN
package App::Standby::Frontend;
$App::Standby::Frontend::VERSION = '0.04';
BEGIN {
$App::Standby::Frontend::AUTHORITY = 'cpan:TEX';
}
# ABSTRACT: Plack based web frontend for App::Standby
use 5.010_000;
use mro 'c3';
use feature ':5.10';
use Moose;
use namespace::autoclean;
# use IO::Handle;
# use autodie;
# use MooseX::Params::Validate;
# use Carp;
# use English qw( -no_match_vars );
# use Try::Tiny;
use Template;
use Try::Tiny;
use List::Util ();
use Module::Pluggable;
use Plack::Request;
use File::ShareDir;
use Config::Yak;
use Log::Tree;
use App::Standby::DB;
use App::Standby::Group;
# extends ...
extends 'App::Standby';
# has ...
has 'dbh' => (
'is' => 'ro',
'isa' => 'App::Standby::DB',
'lazy' => 1,
'builder' => '_init_dbh',
);
has 'config' => (
'is' => 'ro',
'isa' => 'Config::Yak',
'lazy' => 1,
'builder' => '_init_config',
);
has 'logger' => (
'is' => 'ro',
'isa' => 'Log::Tree',
'lazy' => 1,
'builder' => '_init_logger',
);
has 'tt' => (
'is' => 'ro',
'isa' => 'Template',
'lazy' => 1,
'builder' => '_init_tt',
);
has 'finder' => (
'is' => 'rw',
'isa' => 'Module::Pluggable::Object',
'lazy' => 1,
'builder' => '_init_finder',
);
has 'services' => (
'is' => 'rw',
'isa' => 'ArrayRef[Str]',
'lazy' => 1,
'builder' => '_init_services',
);
# with ...
# initializers ...
sub _init_dbh {
my $self = shift;
( run in 1.580 second using v1.01-cache-2.11-cpan-39bf76dae61 )