requires 'Class::Inspector' => 0;
requires 'DBIx::Class' => '0.08127';
requires 'Class::Unload' => 0;
-requires 'Class::Load' => 0;
requires 'File::Slurp' => '9999.13';
requires 'List::MoreUtils' => 0;
requires 'namespace::clean' => '0.20';
use DBIx::Class::Schema::Loader::Optional::Dependencies ();
use Try::Tiny;
use DBIx::Class ();
-use Class::Load 'load_class';
use namespace::clean;
our $VERSION = '0.07010';
->{ $self->naming->{relationships}};
my $relbuilder_class = 'DBIx::Class::Schema::Loader::RelBuilder'.$relbuilder_suff;
- load_class $relbuilder_class;
+ $self->ensure_class_loaded($relbuilder_class);
$relbuilder_class->new( $self );
};
}
for my $class ($base, @components, $self->use_moose ? 'Moose::Object' : ()) {
- load_class $class;
+ $self->ensure_class_loaded($class);
push @methods, @{ Class::Inspector->methods($class) || [] };
}