use linker for creating links in mails instead of static URLs
This commit is contained in:
parent
c995fea203
commit
e03b45c25b
3 changed files with 39 additions and 1 deletions
|
|
@ -43,6 +43,17 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set linker instance for creating links.
|
||||||
|
*
|
||||||
|
* @param Linker $linker Linker instance for creating links
|
||||||
|
*/
|
||||||
|
public function setLinker(\nre\core\Linker $linker)
|
||||||
|
{
|
||||||
|
$this->request->setLinker($linker);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Use a ToplevelAgent for HTML-mail
|
* Use a ToplevelAgent for HTML-mail
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,12 @@
|
||||||
*/
|
*/
|
||||||
class MailRequest extends \nre\core\Request
|
class MailRequest extends \nre\core\Request
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Linker
|
||||||
|
*
|
||||||
|
* @var Linker
|
||||||
|
*/
|
||||||
|
private $linker = null;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -59,6 +65,28 @@
|
||||||
$this->params = array_slice($this->params, 0, $offset);
|
$this->params = array_slice($this->params, 0, $offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set linker instance for creating links.
|
||||||
|
*
|
||||||
|
* @param Linker $linker Linker instance for creating links
|
||||||
|
*/
|
||||||
|
public function setLinker(\nre\core\Linker $linker)
|
||||||
|
{
|
||||||
|
$this->linker = $linker;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get linker instance for creating links.
|
||||||
|
*
|
||||||
|
* @return Linker Linker instance for creating links
|
||||||
|
*/
|
||||||
|
public function getLinker()
|
||||||
|
{
|
||||||
|
return $this->linker;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,6 @@
|
||||||
'genericname' => 'The Legend of Z',
|
'genericname' => 'The Legend of Z',
|
||||||
'namespace' => 'hhu\\z\\',
|
'namespace' => 'hhu\\z\\',
|
||||||
'timeZone' => 'Europe/Berlin',
|
'timeZone' => 'Europe/Berlin',
|
||||||
'url' => 'http://zyren.inf-d.de',
|
|
||||||
'mailsender' => 'questlab@hhu.de'
|
'mailsender' => 'questlab@hhu.de'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue