X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst.pm;h=755a9abae93670fc120aa1d2c0fa29304c8cabb3;hb=5168a5fce4597cd5e1fc4db9d9a400dd0137f674;hp=b43ffcc89a825be4f26e4f6180d443d1ae269fe3;hpb=50f6a990e35f22a9037b1caf72bb8271bb556e78;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index b43ffcc..755a9ab 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -91,7 +91,7 @@ Catalyst - The Elegant MVC Web Application Framework catalyst.pl MyApp # add models, views, controllers - script/myapp_create.pl model Database DBIC dbi:SQLite:/path/to/db + script/myapp_create.pl model Database DBIC::SchemaLoader dbi:SQLite:/path/to/db script/myapp_create.pl view TT TT script/myapp_create.pl controller Search @@ -725,6 +725,9 @@ Catalyst> line. sub setup { my ( $class, @arguments ) = @_; + $class->log->warn("Running setup twice is not a good idea.") + if ( $class->setup_finished ); + unless ( $class->isa('Catalyst') ) { Catalyst::Exception->throw(