Skip to content

Commit

Permalink
Add possibility to custom path twig template to render
Browse files Browse the repository at this point in the history
  • Loading branch information
Xorg committed Aug 31, 2023
1 parent 7cad031 commit e1c9c49
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/notify/EmailCustomer.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ public function asEmailMessage(EmailRecipientInterface $recipient, string $trans
{
$option = $this->option;
$message = EmailMessage::fromNotification( $this, $recipient, $transport );

/**
* custom Email - as emailMessage
*
* @var TemplatedEmail $email
* markAsPublic() take all annotation symfony.
* !!! neox_[xxxx] SETTING FOR TWIG PREFIX !!! >> $option->setContext
* markAsPublic() take all annotation symfony.
* !!! neox_[xxxx] SETTING FOR TWIG PREFIX !!! >> $option->setContext
* try to fund way to be able to have custom path to template
* $option->getTemplate() == "default" ; null ; "xxxx/xxxxx/default.html.twig"
*/

// try to fund way to be able to have custom path to template
// $option->getTemplate() == "default" ; null ; "xxxx/xxxxx/default.html.twig"
$value = $option->getTemplate();
$Template = match (true) {
str_contains($value, '/') => $value,
Expand Down

0 comments on commit e1c9c49

Please sign in to comment.