CodeExplorer getMailing example
public function initMailing($mailingID = null
) { $mailing =
$this->
getMailing($mailingID);
if (empty($mailing)) { return null;
} $repository =
$this->
get('models'
)->
getRepository(Shop::
class);
$shop =
$repository->
getActiveById($mailing['languageID'
]);
if ($shop === null
) { throw new ModelNotFoundException(Shop::
class,
$mailing['languageID'
]);
} $this->
Request() ->
setHttpHost((string) $shop->
getHost())