our $VERSION = '0.08';
$VERSION = eval $VERSION;
-use Moose 0.74 ();
+use Moose 0.94 ();
use Moose::Exporter;
use Moose::Util::MetaRole;
use MooseX::StrictConstructor::Role::Object;
my $caller = $p{for_class};
- Moose::Util::MetaRole::apply_metaclass_roles(
- for_class => $caller,
- constructor_class_roles =>
- ['MooseX::StrictConstructor::Role::Meta::Method::Constructor'],
+ Moose::Util::MetaRole::apply_metaroles(
+ for => $caller,
+ class_metaroles => {
+ constructor => [
+ 'MooseX::StrictConstructor::Role::Meta::Method::Constructor']
+ },
);
Moose::Util::MetaRole::apply_base_class_roles(
- for_class => $caller,
+ for => $caller,
roles =>
['MooseX::StrictConstructor::Role::Object'],
);