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