From: André Walker Date: Thu, 7 Jul 2011 14:59:20 +0000 (-0300) Subject: attributes can all be readonly X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=442ab13e5272dbe33ebeadf8078cfc0fb5d81239 attributes can all be readonly --- diff --git a/lib/Catalyst/IOC/Container.pm b/lib/Catalyst/IOC/Container.pm index 9c684f1..9983cf0 100644 --- a/lib/Catalyst/IOC/Container.pm +++ b/lib/Catalyst/IOC/Container.pm @@ -10,33 +10,32 @@ use namespace::autoclean; extends 'Bread::Board::Container'; -# FIXME - Why do any of these attributes need to be rw? has config_local_suffix => ( - is => 'rw', + is => 'ro', isa => 'Str', default => 'local', ); has driver => ( - is => 'rw', + is => 'ro', isa => 'HashRef', default => sub { +{} }, ); has file => ( - is => 'rw', + is => 'ro', isa => 'Str', default => '', ); has substitutions => ( - is => 'rw', + is => 'ro', isa => 'HashRef', default => sub { +{} }, ); has name => ( - is => 'rw', + is => 'ro', isa => 'Str', default => 'TestApp', );