Fab 4 jaren geleden
bovenliggende
commit
b2dabde4fc
2 gewijzigde bestanden met toevoegingen van 4 en 3 verwijderingen
  1. +1
    -1
      ShopBundle/Controller/Admin/NewsController.php
  2. +3
    -2
      ShopBundle/Services/GlobalParam.php

+ 1
- 1
ShopBundle/Controller/Admin/NewsController.php Bestand weergeven

@@ -24,7 +24,7 @@ class NewsController extends AdminController
foreach ($users as $user) {
$message = new \Swift_Message('[Place du Local] '.$news->getTitle());
$message->addTo($user->getEmail())
->addFrom('no-reply@opendistrib.net', 'Place du Local')
->addFrom($this->getParameter('app.noreply_email'), $this->getParameter('app.site_name'))
->setBody($this->renderView('mail/news.html.twig', [
'message' => $news->getDescription(),
'image' => $news->getImage(),

+ 3
- 2
ShopBundle/Services/GlobalParam.php Bestand weergeven

@@ -2,12 +2,14 @@

namespace Lc\ShopBundle\Services;

use App\Repository\HubRepository;
use Lc\ShopBundle\Context\GlobalParamInterface;
use Lc\ShopBundle\Repository\MerchantRepository;
use Symfony\Component\Security\Core\Security;

class GlobalParam
{
private $security;
protected $security;

public function __construct(Security $security)
{
@@ -25,5 +27,4 @@ class GlobalParam
return false ;
}
}

}

Laden…
Annuleren
Opslaan