Skip to content

Commit

Permalink
Adapt to getManager() change in core setup
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeos committed Feb 3, 2019
1 parent 5729291 commit f602a91
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/custom/setup/unittest/CustomerAddLaravelTestData.php
Expand Up @@ -33,10 +33,15 @@ public function migrate()
/**
* Returns the manager for the current setup task
*
* @param string $domain Domain name of the manager
* @return \Aimeos\MShop\Common\Manager\Iface Manager object
*/
protected function getManager()
protected function getManager( $domain )
{
return \Aimeos\MShop\Customer\Manager\Factory::create( $this->additional, 'Laravel' );
if( $domain === 'customer' ) {
return \Aimeos\MShop\Customer\Manager\Factory::create( $this->additional, 'Laravel' );
}

return parent::getManager( $domain );
}
}

0 comments on commit f602a91

Please sign in to comment.