$action = "!$action";
}
else {
- $c->actions->{plain}->{$action} = [ $namespace, $code ]
+ $c->actions->{plain}->{$action} = [ $namespace, $code ];
}
my $reverse = $prefix ? "$action ($prefix)" : $action;
if ( $c->debug && @args );
}
-=item $c->prepare_connection;
+=item $c->prepare_connection
Prepare connection.
sub prepare_connection { }
-=item $c->prepare_cookies;
+=item $c->prepare_cookies
Prepare cookies.
return $status;
}
+=item $c->run
+
+Starts the engine.
+
+=cut
+
+sub run { }
+
=item $c->request
=item $c->req
}
}
+=item $c->run
+
+=cut
+
sub run { }
=back
=over 4
-=item $c->run
-
-To be called from a CGI script to start the Catalyst application.
-
=item $c->cgi
This config parameter contains the C<CGI::Simple> object.
}
}
+=item $c->run
+
+=cut
+
sub run { shift->handler }
=back
=head1 SYNOPSIS
-See L<Catalyst>.
+A script using the Catalyst::Engine::CGI::NPH module might look like:
+
+ #!/usr/bin/perl -w
+
+ BEGIN {
+ $ENV{CATALYST_ENGINE} = 'CGI::NPH';
+ }
+
+ use strict;
+ use lib '/path/to/MyApp/lib';
+ use MyApp;
+
+ MyApp->run;
=head1 DESCRIPTION
=head1 SYNOPSIS
-See L<Catalyst>.
+A script using the Catalyst::Engine::FCGI module might look like:
+
+ #!/usr/bin/perl -w
+
+ BEGIN {
+ $ENV{CATALYST_ENGINE} = 'FCGI';
+ }
+
+ use strict;
+ use lib '/path/to/MyApp/lib';
+ use MyApp;
+
+ MyApp->run;
=head1 DESCRIPTION
=head1 SYNOPSIS
-See L<Catalyst>.
+A script using the Catalyst::Engine::Server module might look like:
+
+ #!/usr/bin/perl -w
+
+ BEGIN {
+ $ENV{CATALYST_ENGINE} = 'Server';
+ }
+
+ use strict;
+ use lib '/path/to/MyApp/lib';
+ use MyApp;
+
+ MyApp->run;
=head1 DESCRIPTION
=head1 SYNOPSIS
-See L<Catalyst>.
+A script using the Catalyst::Engine::Test module might look like:
+
+ #!/usr/bin/perl -w
+
+ BEGIN {
+ $ENV{CATALYST_ENGINE} = 'Test';
+ }
+
+ use strict;
+ use lib '/path/to/MyApp/lib';
+ use MyApp;
+
+ MyApp->run('/a/path');
=head1 DESCRIPTION
sub debug { shift->_format( 'debug', @_ ) }
-sub dump { shift->_format( 'dump', Dumper( $_[1] ) ) }
-
=item $log->error(@message)
Logs an error message.
=back
+=head1 DEPRECATED METHODS
+
+=over 4
+
+=item $log->dump($reference)
+
+Logs a Data::Dumper of reference.
+
+=cut
+
+sub dump { shift->_format( 'dump', Dumper( $_[1] ) ) }
+
+=back
+
=head1 SEE ALSO
L<Catalyst>.