I'm trying to get multiple Models for each resource type to share one main resource which does login for a Catalyst::Model::REST extended class.
MyApp::Model::Game (Moose enforced required attributes of hostname, username, password) MyApp::Model::Game::Account MyApp::Model::Game::Character
The ::Account and ::Character both extend MyApp::Model::Game, Game has it's own package config defined in the MyApp/lib/MyApp.pm:
__PACKAGE__->config(
name => 'PowerGame',
'Model::Game' => {
hostname => "Somehostname.com",
username => "username",
password => "Hax0rs",
}
}
I'm unable to find documentation on allowing the Model::Game::Account and Model::Game::Character to use the same application config as Model::Game, since I have required attributes, the application fails to start claiming I haven't assigned required attributes.
I'm currently just creating another entry for 'Model::Game::Account' and 'Model::Game::Character' respectively as a workaround.
If I'm going about this the wrong way to share configs between packages,