File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Mojolicious/Command/Author/generate Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ has log => sub {
3535};
3636has ' max_request_size' ;
3737has mode => sub { $ENV {MOJO_MODE } || $ENV {PLACK_ENV } || ' development' };
38- has moniker => sub { Mojo::Util::decamelize ref shift };
38+ has moniker => sub { Mojo::Util::class_to_file ref shift };
3939has plugins => sub { Mojolicious::Plugins-> new };
4040has preload_namespaces => sub { [] };
4141has renderer => sub { Mojolicious::Renderer-> new };
@@ -425,7 +425,7 @@ variables or C<development>.
425425 $app = $app->moniker('foo_bar');
426426
427427Moniker of this application, often used as default filename for configuration files and the like, defaults to
428- decamelizing the application class with L<Mojo::Util/"decamelize "> .
428+ transforming the application class with L<Mojo::Util/"class_to_file "> .
429429
430430=head2 plugins
431431
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ sub run {
1919 $self -> render_to_rel_file(' appclass' , " $name /lib/$app " , {class => $class });
2020
2121 # Config file (using the default moniker)
22- $self -> render_to_rel_file(' config' , " $name /@{[decamelize $class ]} .yml" );
22+ $self -> render_to_rel_file(' config' , " $name /$name .yml" );
2323
2424 # Controller
2525 my $controller = " ${class} ::Controller::Example" ;
Original file line number Diff line number Diff line change @@ -270,7 +270,7 @@ subtest 'Timeout' => sub {
270270subtest ' Pipelined' => sub {
271271 my $daemon = Mojo::Server::Daemon-> new({listen => [' http://127.0.0.1' ], silent => 1});
272272 my $port = $daemon -> start-> ports-> [0];
273- is $daemon -> app-> moniker, ' mojo-hello_world ' , ' right moniker' ;
273+ is $daemon -> app-> moniker, ' mojo_hello_world ' , ' right moniker' ;
274274 my $buffer = ' ' ;
275275 my $id ;
276276 $id = Mojo::IOLoop-> client(
You can’t perform that action at this time.
0 commit comments