Update Ship master class for new ShipDriver requirements.
This commit is contained in:
parent
499feb420b
commit
30ff4597c8
2 changed files with 4 additions and 3 deletions
|
|
@ -73,7 +73,8 @@ sub addShipper {
|
|||
unless exists $self->getDrivers->{$requestedClass};
|
||||
WebGUI::Error::InvalidParam->throw(error => q{You must pass a hashref of options to create a new ShipDriver object})
|
||||
unless defined($options) and ref $options eq 'HASH' and scalar keys %{ $options };
|
||||
my $driver = eval { WebGUI::Pluggable::instanciate($requestedClass, 'create', [ $self->session, $options ]) };
|
||||
my $driver = eval { WebGUI::Pluggable::instanciate($requestedClass, 'new', [ $self->session, $options ]) };
|
||||
$driver->write;
|
||||
return $driver;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue