Cataly...daptor(3pm)
π NAME π
Catalyst::Helper::Model::Adaptor β the helper for the incredibly lazy β¨
πΈ SYNOPSIS πΈ
okay so bestie, you run this:
./script/myapp_create.pl model SomeClass Adaptor MyApp::Backend::SomeClass create
and it's gonna make you a YourApp::Model::SomeClass that looks exactly like this:
package YourApp::Model::SomeClass;
use strict;
use warnings;
use base 'Catalyst::Model::Adaptor';
__PACKAGE__->config(
class => 'MyApp::Backend::SomeClass',
constructor => 'create',
);
1;
and honestly? why you'd need a whole script to generate that is beyond me. but here it is anyway π«Ά
π ARGUMENTS π
./script/myapp_create.pl model <model_name> Adaptor <class> [<constructor>]
so you gotta specify the model_name (that's the name of the model, duh π
) and class, which is the class being adapted.
now if $class->new isn't gonna do the thing you want it to do, just pass the name of $class's constructor as constructor. slay, problem solved π
π AUTHOR π
Jonathan Rockway <jrockway@cpan.org> β¨
π LICENSE π
This library is free software. You can redistribute it and/or modify it under the same terms as perl itself. fr fr π§
No copyright claim is asserted over the generated code. periodt π
and that's the whole vibe check, bestie π this was perl v5.34.0, dated 2022-06-09, and it's giving Catalyst::Helper::Model::Adaptor(3pm) main character energy. no cap, go adapt something iconic π¦πΈ
π¦ where this page comes from
- debian bookworm: libcatalyst-model-adaptor-perl 0.10-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcatalyst-model-adaptor-perl 0.10-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcatalyst-model-adaptor-perl 0.10-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatalyst-model-adaptor-perl 0.10-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatalyst-model-adaptor-perl 0.10-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms