« Preferences/Schema/ResultSet/PrfOwnerType.pm
↑ Summary
Preferences/Schema/ResultSet/PrfDefault.pm »
| 1 | package OpusVL::FB11X::Preferences; | ||
| 2 | |||
| 3 | use v5.24; | ||
| 4 | use Moose::Role; | ||
| 5 | use CatalystX::InjectComponent; | ||
| 6 | |||
| 7 | our $VERSION = '0.33'; | ||
| 8 | |||
| 9 | with "OpusVL::FB11::RolesFor::Plugin"; | ||
| 10 | |||
| 11 | after setup_components => sub { | ||
| 12 | my $class = shift; | ||
| 13 | my $moduledir = $class->add_paths(__PACKAGE__); | ||
| 14 | push $class->config->{'Controller::HTML::FormFu'}->{constructor}->{config_file_path}->@*, $moduledir . '/root/forms'; | ||
| 15 | |||
| 16 | CatalystX::InjectComponent->inject( | ||
| 17 | into => $class, | ||
| 18 | component => 'OpusVL::FB11X::Model::PreferencesDB', | ||
| 19 | as => 'Model::PreferencesDB' | ||
| 20 | ); | ||
| 21 | CatalystX::InjectComponent->inject( | ||
| 22 | into => $class, | ||
| 23 | component => 'OpusVL::FB11X::Preferences::Controller::Preferences', | ||
| 24 | as => 'Controller::Preferences' | ||
| 25 | ); | ||
| 26 | |||
| 27 | }; | ||
| 28 | |||
| 29 | |||
| 30 | 1; |