update xml entry to be more complete and useful, thanks teejay
[catagits/Catalyst-Plugin-ConfigLoader.git] / t / lib / TestApp.pm
index 50eecc7..8d1325c 100644 (file)
@@ -3,6 +3,8 @@ package TestApp;
 use strict;
 use warnings;
 
+use MRO::Compat;
+
 use Catalyst qw/ConfigLoader/;
 
 our $VERSION = '0.01';
@@ -11,13 +13,8 @@ __PACKAGE__->setup;
 
 sub finalize_config {
     my $c = shift;
-    $c->config(foo => 'bar');
-    $c->NEXT::finalize_config;
-}
-
-sub appconfig : Local {
-    my ($self,$c,$var) = @_;
-    $c->res->body($c->config->{$var});
+    $c->config( foo => 'bar' );
+    $c->next::method( @_ );
 }
 
 1;