The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Mojolicious::Command::generate::controller - Controller generator command

SYNOPSIS

  Usage: APPLICATION generate controller [CONTROLLER] [ACTION_LIST]
 
    mojo generate controller MyAPP::Controller::User
    mojo generate controller MyAPP::Controller::User index create show update remove
 
  Options:
    -h, --help   Show this summary of available options
 

DESCRIPTION

Mojolicious::Command::generate::controller generates controller directory structure, file and action methods for a Mojolicious::Controller class.

This command extends core command b<generate> to help developers criating quickly controller class files.

See "COMMANDS" in Mojolicious::Commands for a list of commands that are available by default.

ATTRIBUTES

Mojolicious::Command::generate::controller inherits all attributes from Mojolicious::Command and implements the following new ones.

usage

  my $usage = $app->usage;
 

Usage information for this command, used for the help screen.

METHODS

Mojolicious::Command::generate::controller inherits all methods from Mojolicious::Command and implements the following new ones.

run

  $app->run(@ARGV);
 

Run this command.

SEE ALSO

Mojolicious::Command, Mojolicious::Guides, http://mojolicious.org.

AUTHOR

Daniel Vinciguerra <daniel.vinciguerra@bivee.com.br>

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by Daniel Vinciguerra.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.