allow a schema which has been composed in-place to be composed elsewhere
as well without breakage.
my %map;
while (my ($comp, $comp_class) = each %reg) {
my $target_class = "${target}::${comp}";
- $class->inject_base($target_class, $comp_class, $conn_class);
+ $class->inject_base($target_class, $conn_class, $comp_class);
@map{$comp, $comp_class} = ($target_class, $target_class);
}
{