Hi,
I've got a catalyst specific model class that I'd like to instanciate
by wrapping it with the help of a Catalyst::Model::Adaptor
package MyClass;
use Moose;
has 'c' => ( is => 'ro' , isa => 'Catalyst' );
1;
package MyAPP::Model::MyClass
use base 'Catalyst::Model::Adaptor';
sub prepare_arguments {
my ($self, $app) = @_; # $app sometimes written as $c
return { c => $app };
}
1;
The problem is that here $app is not an instance of MyAPP, but just
the class name 'MyApp' .
How do I access the instance of MyApp from this method?
Cheers!
Jerome.
--
Jerome Eteve.
http://www.eteve.net
[email protected]
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/