remove documentation about adding middleware via setup_middleware. lets only permit...
[catagits/Catalyst-Runtime.git] / lib / Catalyst.pm
index 101e673..5b2472a 100644 (file)
@@ -3067,10 +3067,11 @@ compatible interface, or a coderef, which is assumed to be inlined middleware
 
 =head2 setup_middleware (?@middleware)
 
-Read configuration information stored in configuration key 'psgi_middleware'
-and invoke L</register_middleware> for each middleware prototype found.  See
-under L</CONFIGURATION> information regarding L</psgi_middleware> and how to
-use it to enable L<Plack::Middleware>
+Read configuration information stored in configuration key C<psgi_middleware> or
+from passed @args.
+
+See under L</CONFIGURATION> information regarding C<psgi_middleware> and how
+to use it to enable L<Plack::Middleware>
 
 This method is automatically called during 'setup' of your application, so
 you really don't need to invoke it.
@@ -3080,9 +3081,6 @@ which sounds odd but is likely how you expect it to work if you have prior
 experience with L<Plack::Builder> or if you previously used the plugin
 L<Catalyst::Plugin::EnableMiddleware> (which is now considered deprecated)
 
-You can pass middleware definitions to this as well, from the application
-class if you like.
-
 =cut
 
 sub registered_middlewares {