catch (AppUrlChangeDetectedException
) { throw AppException::
registrationFailed( $appName,
'The app url changed. Please resolve how the apps should handle this change.'
);
} if ($privateSecret) { return new PrivateHandshake( $this->shopUrl,
$privateSecret,
$setup->
getRegistrationUrl(),
$metadata->
getName(),
$shopId,
$this->shopwareVersion
);
} return new StoreHandshake( $this->shopUrl,
$setup->
getRegistrationUrl(),
$metadata->
getName(),
$shopId,