More cleanups in the generated skeleton app
[catagits/Catalyst-Devel.git] / share / lib / MyApp.pm.tt
index 0032a13..a1fa271 100644 (file)
@@ -12,13 +12,16 @@ use Catalyst::Runtime 5.80;
 # Static::Simple: will serve static files from the application's root
 #                 directory
 
-use Catalyst qw/-Debug
-                ConfigLoader
-                Static::Simple/;
+use Catalyst qw/
+       -Debug
+    ConfigLoader
+    Static::Simple
+/;
 
 extends 'Catalyst';
 
 our $VERSION = '0.01';
+$VERSION = eval $VERSION;
 
 # Configure the application.
 #
@@ -29,7 +32,11 @@ our $VERSION = '0.01';
 # with an external configuration file acting as an override for
 # local deployment.
 
-__PACKAGE__->config( name => '[% name %]' );
+__PACKAGE__->config(
+       name => '[% name %]',
+       # Disable deprecated behavior needed by old applications
+       disable_component_resolution_regex_fallback => 1, 
+);
 
 # Start the application
 __PACKAGE__->setup();