Browse Source

Correctif bug 500

packProduct
Fabien Normand 2 years ago
parent
commit
0c59e9f516
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      Resolver/MerchantResolver.php

+ 2
- 1
Resolver/MerchantResolver.php View File

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



Loading…
Cancel
Save