my ($class, %options) = @_;
($options{package_name} && $options{name})
|| confess "You must supply the package_name and name parameters";
- my $self = $class->meta->new_object(%options);
+ my $self = $class->_new(%options);
$self->initialize_body;
$self;
});
|| confess "You must supply the package_name and name parameters";
# return the new object
- my $self = $class->meta->new_object(%options);
+ my $self = $class->_new(%options);
# we don't want this creating
# a cycle in the code, if not
|| confess "You must supply the package_name and name parameters";
# return the new object
- my $self = $class->meta->new_object(%options);
+ my $self = $class->_new(%options);
# we don't want this creating
# a cycle in the code, if not
my $class = shift;
my $options = $class->BUILDARGS(@_);
- my $self = $class->meta->new_object(%$options);
+ my $self = $class->_new(%$options);
Scalar::Util::weaken($self->{'associated_metaclass'});