1 package CAFCompatTestPlugin;
3 # This plugin specificially tests an edge case of CAF compat,
4 # where you load a plugin which uses base CAF, and then override
5 # a core catalyst accessor (_config in this case)..
7 # This is what happens if you use the authentication back-compat
8 # stuff, as C::A::Plugin::Credential::Password is added to the plugin
9 # list, and the base C::A::C::P class, does the mk_accessors, and
10 # then the C::P::A class calls the config method before setup finishes...
15 # Note that we don't actually _really_ use CAF here, as MX::Adopt::CAF
17 use base qw/Class::Accessor::Fast/;
20 __PACKAGE__->mk_accessors(qw/_config/);
27 $app->NEXT::setup(@_);