X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FPlugin%2FConfigLoader.pm;h=11c48d9b90db28120aae9cddfeb40048435bdab9;hb=f26205e80c730cdef89f9269016b82c308e437da;hp=04ac7e332e919229ebae8104e54819f96a880619;hpb=1da5b36d4352150acc96b1fe8e576731bb0eee63;p=catagits%2FCatalyst-Plugin-ConfigLoader.git diff --git a/lib/Catalyst/Plugin/ConfigLoader.pm b/lib/Catalyst/Plugin/ConfigLoader.pm index 04ac7e3..11c48d9 100644 --- a/lib/Catalyst/Plugin/ConfigLoader.pm +++ b/lib/Catalyst/Plugin/ConfigLoader.pm @@ -160,27 +160,16 @@ The order of preference is specified as: If either of the first two user-specified options are directories, the application prefix will be added on to the end of the path. -DEPRECATION NOTICE: C<$c-Econfig-E{ file }> is deprecated -and will be removed in the next release. - =cut sub get_config_path { my $c = shift; - # deprecation notice - if ( exists $c->config->{ file } ) { - $c->log->warn( - q(*** "file" config parameter has been deprecated in favor of "$c->config->{ 'Plugin::ConfigLoader' }->{ file }") - ); - sleep( 3 ); - } my $appname = ref $c || $c; my $prefix = Catalyst::Utils::appprefix( $appname ); my $path = Catalyst::Utils::env_value( $c, 'CONFIG' ) || $c->config->{ 'Plugin::ConfigLoader' }->{ file } - || $c->config->{ file } # to be removed next release || $c->path_to( $prefix ); my ( $extension ) = ( $path =~ m{\.(.{1,4})$} ); @@ -208,27 +197,14 @@ this value is C, but it can be specified in the following order of prefer =back -DEPRECATION NOTICE: C<$c-Econfig-E{ config_local_suffix }> is deprecated -and will be removed in the next release. - =cut sub get_config_local_suffix { my $c = shift; - # deprecation notice - if ( exists $c->config->{ config_local_suffix } ) { - $c->log->warn( - q(*** "config_local_suffix" config parameter has been deprecated in favor of "$c->config->{ 'Plugin::ConfigLoader' }->{ config_local_suffix }") - ); - sleep( 3 ); - } - my $appname = ref $c || $c; my $suffix = Catalyst::Utils::env_value( $c, 'CONFIG_LOCAL_SUFFIX' ) || $c->config->{ 'Plugin::ConfigLoader' }->{ config_local_suffix } - || $c->config - ->{ config_local_suffix } # to be remove in the next release || 'local'; return $suffix;