diff options
Diffstat (limited to 'lib/Bread/Board/Declare/Role/Service.pm')
-rw-r--r-- | lib/Bread/Board/Declare/Role/Service.pm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/Bread/Board/Declare/Role/Service.pm b/lib/Bread/Board/Declare/Role/Service.pm index 96bdaf7..d1972db 100644 --- a/lib/Bread/Board/Declare/Role/Service.pm +++ b/lib/Bread/Board/Declare/Role/Service.pm @@ -24,6 +24,17 @@ has associated_attribute => ( weak_ref => 1, ); +=method should_create_typemap + +Whether this service will create a type mapping, when it is added to a +container. + +=cut + +sub should_create_typemap { + return shift->associated_attribute->typemap; +} + around get => sub { my $orig = shift; my $self = shift; |