Pārlūkot izejas kodu

Correctif bug 500

packProduct
Fabien Normand pirms 2 gadiem
vecāks
revīzija
0c59e9f516
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. +2
    -1
      Resolver/MerchantResolver.php

+ 2
- 1
Resolver/MerchantResolver.php Parādīt failu

@@ -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');
}
}


Notiek ielāde…
Atcelt
Saglabāt