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