|
|
|
|
|
|
|
|
use Lc\SovBundle\Solver\Setting\SettingSolver; |
|
|
use Lc\SovBundle\Solver\Setting\SettingSolver; |
|
|
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface; |
|
|
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface; |
|
|
use Symfony\Component\HttpFoundation\RequestStack; |
|
|
use Symfony\Component\HttpFoundation\RequestStack; |
|
|
|
|
|
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
|
|
use Symfony\Component\Routing\Generator\UrlGeneratorInterface; |
|
|
use Symfony\Component\Routing\Generator\UrlGeneratorInterface; |
|
|
use Symfony\Component\Security\Core\Security; |
|
|
use Symfony\Component\Security\Core\Security; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return $this->currentMerchant; |
|
|
return $this->currentMerchant; |
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
|
throw new \ErrorException('Aucun merchant courant'); |
|
|
|
|
|
|
|
|
throw new NotFoundHttpException('Aucun marchand n\'est défini'); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|