This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// 1. prepare invitation | |
$identityProvider->becomeAdmin(); | |
$invitation = $accounts->prepareInvitation(EmailAddress::of('[email protected]'), 7); | |
// 2. check invitation code (OK) | |
$identityProvider->becomeGuest(); | |
$tempIdentity = $accounts->authenticateWithTemporaryToken( | |
$invitation->getTemporaryAuthenticationToken() | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Use this regexp for example in PHPStorm: | |
(link\(|redirect\(|forward\(|n:href|\{plink |\{link ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo translate("You cannot continue,") | |
echo '<a href="http://somewhere">'; | |
echo translate('click here'); | |
echo '</a>'; | |
echo translate('to fix problem.'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You cannot continue, <a href="http://somewhere">click here</a> to fix problem. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
translate('cannotContinue', [ | |
'link' => 'https://somewhere' | |
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$link = Html::el('a')->href('https://somewhere'); | |
translate('cannotContinue', [ | |
'linkStart' => $link->startTag(), | |
'linkEnd' => $link->endTag(), | |
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
translate('cannotContinue', [ | |
'linkFix' => Html::el('a')->href('https://somewhere') | |
]) |
OlderNewer