default => sub { +{} },
);
+has application => (
+ is => 'ro',
+ isa => 'Catalyst|Str',
+ lazy => 1,
+ default => sub { shift->application_name },
+);
+
has application_name => (
is => 'ro',
isa => 'Str',
substitutions
file
driver
+ application
application_name
prefix
extensions
);
}
+sub build_application_service {
+ my $self = shift;
+
+ return Bread::Board::Literal->new(
+ name => 'application',
+ value => $self->application,
+ );
+}
+
sub build_application_name_service {
my $self = shift;
class => $component,
lifecycle => 'Singleton',
dependencies => [
- depends_on( '/application_name' ),
+ depends_on( '/application' ),
],
),
);