Browse Source

ControllerTrait

packProduct
Guillaume 3 years ago
parent
commit
5012545c2b
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      Controller/ControllerTrait.php

+ 7
- 0
Controller/ControllerTrait.php View File

use Lc\CaracoleBundle\Model\Section\SectionInterface; use Lc\CaracoleBundle\Model\Section\SectionInterface;
use Lc\CaracoleBundle\Model\User\UserMerchantInterface; use Lc\CaracoleBundle\Model\User\UserMerchantInterface;
use Lc\CaracoleBundle\Model\User\VisitorInterface; use Lc\CaracoleBundle\Model\User\VisitorInterface;
use Lc\CaracoleBundle\Notification\MailMailjetNotification;
use Lc\CaracoleBundle\Resolver\MerchantResolver; use Lc\CaracoleBundle\Resolver\MerchantResolver;
use Lc\CaracoleBundle\Resolver\SectionResolver; use Lc\CaracoleBundle\Resolver\SectionResolver;
use Lc\CaracoleBundle\Solver\Price\PriceSolver; use Lc\CaracoleBundle\Solver\Price\PriceSolver;
return array_merge( return array_merge(
parent::getSubscribedServices(), parent::getSubscribedServices(),
[ [
MailMailjetNotification::class => MailMailjetNotification::class,
PriceSolver::class => PriceSolver::class, PriceSolver::class => PriceSolver::class,
MerchantResolver::class => MerchantResolver::class, MerchantResolver::class => MerchantResolver::class,
SectionResolver::class => SectionResolver::class, SectionResolver::class => SectionResolver::class,
); );
} }


public function getMailMailjetNotification()
{
return $this->get(MailMailjetNotification::class);
}

public function getMerchantSettingCurrent(string $settingName) public function getMerchantSettingCurrent(string $settingName)
{ {
return $this->getSettingValue($this->getMerchantCurrent(), $settingName); return $this->getSettingValue($this->getMerchantCurrent(), $settingName);

Loading…
Cancel
Save