From: Dave Rolsky Date: Thu, 15 Jul 2010 15:41:55 +0000 (-0500) Subject: Use modern MetaRole API X-Git-Tag: 0.23~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0428be433548892397128114f791fda62517b45b;p=gitmo%2FMooseX-Singleton.git Use modern MetaRole API --- diff --git a/lib/MooseX/Singleton.pm b/lib/MooseX/Singleton.pm index fde0bf1..05e6a2e 100644 --- a/lib/MooseX/Singleton.pm +++ b/lib/MooseX/Singleton.pm @@ -19,13 +19,15 @@ sub init_meta { my $caller = $p{for_class}; - Moose::Util::MetaRole::apply_metaclass_roles( - for_class => $caller, - metaclass_roles => ['MooseX::Singleton::Role::Meta::Class'], - instance_metaclass_roles => - ['MooseX::Singleton::Role::Meta::Instance'], - constructor_class_roles => - ['MooseX::Singleton::Role::Meta::Method::Constructor'], + Moose::Util::MetaRole::apply_metaroles( + for => $caller, + class_metaroles => { + class => ['MooseX::Singleton::Role::Meta::Class'], + instance => + ['MooseX::Singleton::Role::Meta::Instance'], + constructor => + ['MooseX::Singleton::Role::Meta::Method::Constructor'], + }, ); Moose::Util::MetaRole::apply_base_class_roles(