X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FPSGI.pod;h=a05e0023bbe4518005b457c2c6917853feeeeb2f;hp=fdf1004aec30ef645ccdb0b0ad1826f9224abe6d;hb=b007fcc611c8584b634e27a60ebfe5b6f518601a;hpb=738623100c0213fab4e17c31477b17b54f35f46f diff --git a/lib/Catalyst/PSGI.pod b/lib/Catalyst/PSGI.pod index fdf1004..a05e002 100644 --- a/lib/Catalyst/PSGI.pod +++ b/lib/Catalyst/PSGI.pod @@ -52,7 +52,7 @@ The simplest C<.psgi> file for an application called C would be: use warnings; use TestApp; - my $app = sub { TestApp->psgi_app(@_) }; + my $app = TestApp->psgi_app(@_); Note that Catalyst will apply a number of middleware components for you automatically, and these B be applied if you manually create a @@ -74,8 +74,6 @@ in: =item L -=item nginx - local to Catalyst - =back If you override the default by providing your own C<< .psgi >> file, @@ -88,6 +86,15 @@ An apply_default_middlewares method is supplied to wrap your application in the default middlewares if you want this behaviour and you are providing your own .psgi file. +This means that the auto-generated (no .psgi file) code looks something +like this: + + use strict; + use warnings; + use TestApp; + + my $app = TestApp->apply_default_middlewares(TestApp->psgi_app(@_)); + =head1 SEE ALSO L, L, L, L.