exception 'Aws\Ec2\Exception\Ec2Exception' with message 'Error executing "DescribeTags" on "https://ec2.eu-west-1.amazonaws.com"; AWS HTTP error: Server error: `POST https://ec2.eu-west-1.amazonaws.com` resulted in a `503 Service Unavailable` response: RequestLimitExceededRequest limit (truncated...) RequestLimitExceeded (server): Request limit exceeded. - RequestLimitExceededRequest limit exceeded.496418d0-f75c-4733-ab28-fe99dc4763f6' GuzzleHttp\Exception\ServerException: Server error: `POST https://ec2.eu-west-1.amazonaws.com` resulted in a `503 Service Unavailable` response: RequestLimitExceededRequest limit (truncated...) in /var/www/123roulement.com/web/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113 Stack trace: #0 /var/www/123roulement.com/web/vendor/guzzlehttp/guzzle/src/Middleware.php(65): GuzzleHttp\Exception\RequestException::create() #1 /var/www/123roulement.com/web/vendor/guzzlehttp/promises/src/Promise.php(204): GuzzleHttp\Middleware::GuzzleHttp\{closure}() #2 /var/www/123roulement.com/web/vendor/guzzlehttp/promises/src/Promise.php(153): GuzzleHttp\Promise\Promise::callHandler() #3 /var/www/123roulement.com/web/vendor/guzzlehttp/promises/src/TaskQueue.php(48): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}() #4 /var/www/123roulement.com/web/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php(118): GuzzleHttp\Promise\TaskQueue->run() #5 /var/www/123roulement.com/web/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php(145): GuzzleHttp\Handler\CurlMultiHandler->tick() #6 /var/www/123roulement.com/web/vendor/guzzlehttp/promises/src/Promise.php(248): GuzzleHttp\Handler\CurlMultiHandler->execute() #7 /var/www/123roulement.com/web/vendor/guzzlehttp/promises/src/Promise.php(224): GuzzleHttp\Promise\Promise->invokeWaitFn() #8 /var/www/123roulement.com/web/vendor/guzzlehttp/promises/src/Promise.php(269): GuzzleHttp\Promise\Promise->waitIfPending() #9 /var/www/123roulement.com/web/vendor/guzzlehttp/promises/src/Promise.php(226): GuzzleHttp\Promise\Promise->invokeWaitList() #10 /var/www/123roulement.com/web/vendor/guzzlehttp/promises/src/Promise.php(269): GuzzleHttp\Promise\Promise->waitIfPending() #11 /var/www/123roulement.com/web/vendor/guzzlehttp/promises/src/Promise.php(226): GuzzleHttp\Promise\Promise->invokeWaitList() #12 /var/www/123roulement.com/web/vendor/guzzlehttp/promises/src/Promise.php(62): GuzzleHttp\Promise\Promise->waitIfPending() #13 /var/www/123roulement.com/web/vendor/aws/aws-sdk-php/src/AwsClientTrait.php(58): GuzzleHttp\Promise\Promise->wait() #14 /var/www/123roulement.com/web/vendor/aws/aws-sdk-php/src/AwsClientTrait.php(86): Aws\AwsClient->execute() #15 /var/www/123roulement.com/web/src/Util/AWS/EC2ClientManager.php(46): Aws\AwsClient->__call() #16 /var/www/123roulement.com/web/.env.local.php(24): App\Util\AWS\EC2ClientManager->getDescribeTags() #17 /var/www/123roulement.com/web/config/bootstrap.php(9): include('/var/www/123rou...') #18 /var/www/123roulement.com/web/public/index.php(7): require('/var/www/123rou...') #19 {main} Next Aws\Ec2\Exception\Ec2Exception: Error executing "DescribeTags" on "https://ec2.eu-west-1.amazonaws.com"; AWS HTTP error: Server error: `POST https://ec2.eu-west-1.amazonaws.com` resulted in a `503 Service Unavailable` response: RequestLimitExceededRequest limit (truncated...) RequestLimitExceeded (server): Request limit exceeded. - RequestLimitExceededRequest limit exceeded.496418d0-f75c-4733-ab28-fe99dc4763f6 in /var/www/123roulement.com/web/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php:195 Stack trace: #0 /var/www/123roulement.com/web/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php(97): Aws\WrappedHttpHandler->parseError() #1 /var/www/123roulement.com/web/vendor/guzzlehttp/promises/src/Promise.php(204): Aws\WrappedHttpHandler->Aws\{closure}() #2 /var/www/123roulement.com/web/vendor/guzzlehttp/promises/src/Promise.php(169): GuzzleHttp\Promise\Promise::callHandler() #3 /var/www/123roulement.com/web/vendor/guzzlehttp/promises/src/RejectedPromise.php(42): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}() #4 /var/www/123roulement.com/web/vendor/guzzlehttp/promises/src/TaskQueue.php(48): GuzzleHttp\Promise\RejectedPromise::GuzzleHttp\Promise\{closure}() #5 /var/www/123roulement.com/web/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php(118): GuzzleHttp\Promise\TaskQueue->run() #6 /var/www/123roulement.com/web/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php(145): GuzzleHttp\Handler\CurlMultiHandler->tick() #7 /var/www/123roulement.com/web/vendor/guzzlehttp/promises/src/Promise.php(248): GuzzleHttp\Handler\CurlMultiHandler->execute() #8 /var/www/123roulement.com/web/vendor/guzzlehttp/promises/src/Promise.php(224): GuzzleHttp\Promise\Promise->invokeWaitFn() #9 /var/www/123roulement.com/web/vendor/guzzlehttp/promises/src/Promise.php(269): GuzzleHttp\Promise\Promise->waitIfPending() #10 /var/www/123roulement.com/web/vendor/guzzlehttp/promises/src/Promise.php(226): GuzzleHttp\Promise\Promise->invokeWaitList() #11 /var/www/123roulement.com/web/vendor/guzzlehttp/promises/src/Promise.php(269): GuzzleHttp\Promise\Promise->waitIfPending() #12 /var/www/123roulement.com/web/vendor/guzzlehttp/promises/src/Promise.php(226): GuzzleHttp\Promise\Promise->invokeWaitList() #13 /var/www/123roulement.com/web/vendor/guzzlehttp/promises/src/Promise.php(62): GuzzleHttp\Promise\Promise->waitIfPending() #14 /var/www/123roulement.com/web/vendor/aws/aws-sdk-php/src/AwsClientTrait.php(58): GuzzleHttp\Promise\Promise->wait() #15 /var/www/123roulement.com/web/vendor/aws/aws-sdk-php/src/AwsClientTrait.php(86): Aws\AwsClient->execute() #16 /var/www/123roulement.com/web/src/Util/AWS/EC2ClientManager.php(46): Aws\AwsClient->__call() #17 /var/www/123roulement.com/web/.env.local.php(24): App\Util\AWS\EC2ClientManager->getDescribeTags() #18 /var/www/123roulement.com/web/config/bootstrap.php(9): include('/var/www/123rou...') #19 /var/www/123roulement.com/web/public/index.php(7): require('/var/www/123rou...') #20 {main} An exception occurred in driver: SQLSTATE[HY000] [2002] Connection refused (500 Internal Server Error)

An exception occurred in driver: SQLSTATE[HY000] [2002] Connection refused

Exceptions 6

Doctrine\DBAL\Exception\ ConnectionException

  1.             case '1227':
  2.             case '1370':
  3.             case '1429':
  4.             case '2002':
  5.             case '2005':
  6.                 return new ConnectionException($message$exception);
  7.             case '2006':
  8.                 return new ConnectionLost($message$exception);
  9.             case '1048':
  1.         if ($driverEx instanceof DriverException) {
  2.             return $driverEx;
  3.         }
  4.         if ($driver instanceof ExceptionConverterDriver && $driverEx instanceof DeprecatedDriverException) {
  5.             return $driver->convertException($msg$driverEx);
  6.         }
  7.         return new Exception($msg0$driverEx);
  8.     }
  1.      *
  2.      * @return Exception
  3.      */
  4.     public static function driverException(Driver $driverThrowable $driverEx)
  5.     {
  6.         return static::wrapException($driver$driverEx'An exception occurred in driver: ' $driverEx->getMessage());
  7.     }
  8.     /**
  9.      * @return Exception
  10.      */
  1.                 $username,
  2.                 $password,
  3.                 $driverOptions
  4.             );
  5.         } catch (PDOException $e) {
  6.             throw Exception::driverException($this$e);
  7.         }
  8.         return $conn;
  9.     }
  1.         $driverOptions $this->params['driverOptions'] ?? [];
  2.         $user          $this->params['user'] ?? null;
  3.         $password      $this->params['password'] ?? null;
  4.         $this->_conn $this->_driver->connect($this->params$user$password$driverOptions);
  5.         $this->transactionNestingLevel 0;
  6.         if ($this->autoCommit === false) {
  7.             $this->beginTransaction();
  1.      *
  2.      * @return DriverConnection
  3.      */
  4.     public function getWrappedConnection()
  5.     {
  6.         $this->connect();
  7.         assert($this->_conn !== null);
  8.         return $this->_conn;
  9.     }
  1.      * @param Connection $conn The connection on which the statement should be executed.
  2.      */
  3.     public function __construct($sqlConnection $conn)
  4.     {
  5.         $this->sql      $sql;
  6.         $this->stmt     $conn->getWrappedConnection()->prepare($sql);
  7.         $this->conn     $conn;
  8.         $this->platform $conn->getDatabasePlatform();
  9.     }
  10.     /**
  1.      * @throws Exception
  2.      */
  3.     public function prepare($sql)
  4.     {
  5.         try {
  6.             $stmt = new Statement($sql$this);
  7.         } catch (Throwable $e) {
  8.             $this->handleExceptionDuringQuery($e$sql);
  9.         }
  10.         $stmt->setFetchMode($this->defaultFetchMode);
  1.     public function getTelephoneTypes() {
  2.         $sql "
  3.             SELECT *
  4.             FROM CLT_STC_typeTelephone
  5.         ";
  6.         $stmt $this->conn->prepare($sql);
  7.         $stmt->execute();
  8.         return $stmt->fetchAll();
  9.     }
  10.     /**
  1.     public function __construct(TelephoneRepository $telephoneRepositoryTelephoneTypeFormatter $telephoneTypeFormatter) {
  2.         $this->types = [];
  3.         if (! (strcmp(php_sapi_name(), 'cli') == 0)) {
  4.             $data $telephoneRepository->getTelephoneTypes();
  5.             foreach($data as $type) {
  6.                 $this->types[] = $telephoneTypeFormatter->formatToModel($type);
  7.             }
  8.         }
  9.     }
  1.      *
  2.      * @return \Mycelium\Bundle\SymfonyCustomerBundle\Helper\TelephoneTypeHelper
  3.      */
  4.     protected function getTelephoneTypeHelperService()
  5.     {
  6.         return $this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Helper\\TelephoneTypeHelper'] = new \Mycelium\Bundle\SymfonyCustomerBundle\Helper\TelephoneTypeHelper(($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Repository\\TelephoneRepository'] ?? $this->getTelephoneRepositoryService()), ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\TelephoneTypeFormatter'] ?? ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\TelephoneTypeFormatter'] = new \Mycelium\Bundle\SymfonyCustomerBundle\Formatter\TelephoneTypeFormatter())));
  7.     }
  8.     /**
  9.      * Gets the public 'Mycelium\Bundle\SymfonyCustomerBundle\Manager\AddressManager' shared service.
  10.      *
App_KernelDevDebugContainer->getTelephoneTypeHelperService() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 720)
  1.      *
  2.      * @return \Mycelium\Bundle\SymfonyCustomerBundle\Manager\ContactManager
  3.      */
  4.     protected function getContactManagerService()
  5.     {
  6.         return $this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Manager\\ContactManager'] = new \Mycelium\Bundle\SymfonyCustomerBundle\Manager\ContactManager(($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Repository\\ContactRepository'] ?? $this->getContactRepositoryService()), ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\ContactFormatter'] ?? ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\ContactFormatter'] = new \Mycelium\Bundle\SymfonyCustomerBundle\Formatter\ContactFormatter())), ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\ContactLoginFormatter'] ?? ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\ContactLoginFormatter'] = new \Mycelium\Bundle\SymfonyCustomerBundle\Formatter\ContactLoginFormatter())), ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\TelephoneFormatter'] ?? ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\TelephoneFormatter'] = new \Mycelium\Bundle\SymfonyCustomerBundle\Formatter\TelephoneFormatter())), ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Helper\\TelephoneTypeHelper'] ?? $this->getTelephoneTypeHelperService()));
  7.     }
  8.     /**
  9.      * Gets the public 'Mycelium\Bundle\SymfonyCustomerBundle\Manager\CustomerManager' shared service.
  10.      *
App_KernelDevDebugContainer->getContactManagerService() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 4197)
  1.         if (isset($this->privates['Mycelium\\Bundle\\SymfonyProductBundle\\ProductService'])) {
  2.             return $this->privates['Mycelium\\Bundle\\SymfonyProductBundle\\ProductService'];
  3.         }
  4.         return $this->privates['Mycelium\\Bundle\\SymfonyProductBundle\\ProductService'] = new \Mycelium\Bundle\SymfonyProductBundle\ProductService(($this->services['doctrine'] ?? $this->getDoctrineService()), ($this->privates['security.helper'] ?? $this->getSecurity_HelperService()), $a, ($this->services['cache.app'] ?? $this->getCache_AppService()), ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Manager\\ContactManager'] ?? $this->getContactManagerService()));
  5.     }
  6.     /**
  7.      * Gets the private 'annotations.cache' shared service.
  8.      *
App_KernelDevDebugContainer->getProductServiceService() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 927)
  1.      *
  2.      * @return \Mycelium\Bundle\SymfonyOrderBundle\Repository\BasketRepository
  3.      */
  4.     protected function getBasketRepositoryService()
  5.     {
  6.         $a = ($this->privates['Mycelium\\Bundle\\SymfonyProductBundle\\ProductService'] ?? $this->getProductServiceService());
  7.         if (isset($this->services['Mycelium\\Bundle\\SymfonyOrderBundle\\Repository\\BasketRepository'])) {
  8.             return $this->services['Mycelium\\Bundle\\SymfonyOrderBundle\\Repository\\BasketRepository'];
  9.         }
  10.         $b = ($this->services['twig'] ?? $this->getTwigService());
App_KernelDevDebugContainer->getBasketRepositoryService() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 850)
  1.      *
  2.      * @return \Mycelium\Bundle\SymfonyOrderBundle\Manager\BasketManager
  3.      */
  4.     protected function getBasketManagerService()
  5.     {
  6.         $a = ($this->services['Mycelium\\Bundle\\SymfonyOrderBundle\\Repository\\BasketRepository'] ?? $this->getBasketRepositoryService());
  7.         if (isset($this->services['Mycelium\\Bundle\\SymfonyOrderBundle\\Manager\\BasketManager'])) {
  8.             return $this->services['Mycelium\\Bundle\\SymfonyOrderBundle\\Manager\\BasketManager'];
  9.         }
  10.         $b = ($this->privates['Mycelium\\Bundle\\SymfonyProductBundle\\ProductService'] ?? $this->getProductServiceService());
App_KernelDevDebugContainer->getBasketManagerService() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 495)
  1.      *
  2.      * @return \App\Service\ApplicationGlobalsVariablesService
  3.      */
  4.     protected function getApplicationGlobalsVariablesService2Service()
  5.     {
  6.         $this->services['ApplicationGlobalsVariablesService'] = $instance = new \App\Service\ApplicationGlobalsVariablesService(($this->services['Mycelium\\Bundle\\SymfonyOrderBundle\\Manager\\BasketManager'] ?? $this->getBasketManagerService()), ($this->services['App\\Service\\VatService'] ?? $this->getVatServiceService()));
  7.         $instance->setContainer(($this->privates['.service_locator.g9CqTPp'] ?? $this->get_ServiceLocator_G9CqTPpService())->withContext('ApplicationGlobalsVariablesService'$this));
  8.         return $instance;
  9.     }
App_KernelDevDebugContainer->getApplicationGlobalsVariablesService2Service() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 3991)
  1.      *
  2.      * @return \App\EventSubscriber\applicationGlobalsVariablesSubscriber
  3.      */
  4.     protected function getApplicationGlobalsVariablesSubscriberService()
  5.     {
  6.         return $this->privates['App\\EventSubscriber\\applicationGlobalsVariablesSubscriber'] = new \App\EventSubscriber\applicationGlobalsVariablesSubscriber(($this->services['ApplicationGlobalsVariablesService'] ?? $this->getApplicationGlobalsVariablesService2Service()));
  7.     }
  8.     /**
  9.      * Gets the private 'App\Form\FilterFormType' shared autowired service.
  10.      *
App_KernelDevDebugContainer->getApplicationGlobalsVariablesSubscriberService() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 1627)
  1.         }, => 'onKernelRequest'], 20);
  2.         $instance->addListener('kernel.response', [=> function () {
  3.             return ($this->privates['App\\EventSubscriber\\ResponseSubscriber'] ?? ($this->privates['App\\EventSubscriber\\ResponseSubscriber'] = new \App\EventSubscriber\ResponseSubscriber()));
  4.         }, => 'onKernelResponse'], 0);
  5.         $instance->addListener('kernel.request', [=> function () {
  6.             return ($this->privates['App\\EventSubscriber\\applicationGlobalsVariablesSubscriber'] ?? $this->getApplicationGlobalsVariablesSubscriberService());
  7.         }, => 'onKernelRequest'], 4096);
  8.         $instance->addListener('console.command', [=> function () {
  9.             return ($this->privates['App\\EventSubscriber\\applicationGlobalsVariablesSubscriber'] ?? $this->getApplicationGlobalsVariablesSubscriberService());
  10.         }, => 'onCommandStart'], 4096);
  11.         $instance->addListener('kernel.response', [=> function () {
  1.             foreach ($listeners as &$listener) {
  2.                 $closure = &$this->optimized[$eventName][];
  3.                 if (\is_array($listener) && isset($listener[0]) && $listener[0] instanceof \Closure && >= \count($listener)) {
  4.                     $closure = static function (...$args) use (&$listener, &$closure) {
  5.                         if ($listener[0] instanceof \Closure) {
  6.                             $listener[0] = $listener[0]();
  7.                             $listener[1] = $listener[1] ?? '__invoke';
  8.                         }
  9.                         ($closure = \Closure::fromCallable($listener))(...$args);
  10.                     };
  11.                 } else {
in /var/www/123roulement.com/web/vendor/symfony/event-dispatcher/EventDispatcher.php :: Symfony\Component\EventDispatcher\{closure} (line 230)
  1.         foreach ($listeners as $listener) {
  2.             if ($stoppable && $event->isPropagationStopped()) {
  3.                 break;
  4.             }
  5.             $listener($event$eventName$this);
  6.         }
  7.     }
  8.     /**
  9.      * Sorts the internal list of listeners for the given event by priority.
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.         try {
  2.             $this->beforeDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($event$eventName);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
  1.     {
  2.         $this->requestStack->push($request);
  3.         // request
  4.         $event = new RequestEvent($this$request$type);
  5.         $this->dispatcher->dispatch($eventKernelEvents::REQUEST);
  6.         if ($event->hasResponse()) {
  7.             return $this->filterResponse($event->getResponse(), $request$type);
  8.         }
  1.     public function handle(Request $requestint $type HttpKernelInterface::MASTER_REQUESTbool $catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $exception $event->getThrowable();
  2.         $request $this->duplicateRequest($exception$event->getRequest());
  3.         try {
  4.             $response $event->getKernel()->handle($requestHttpKernelInterface::SUB_REQUESTfalse);
  5.         } catch (\Exception $e) {
  6.             $f FlattenException::createFromThrowable($e);
  7.             $this->logException($esprintf('Exception thrown when handling an exception (%s: %s at %s line %s)'$f->getClass(), $f->getMessage(), $e->getFile(), $e->getLine()));
  1.         $this->called true;
  2.         $this->priority $dispatcher->getListenerPriority($eventName$this->listener);
  3.         $e $this->stopwatch->start($this->name'event_listener');
  4.         ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         if ($e->isStarted()) {
  6.             $e->stop();
  7.         }
  1.         foreach ($listeners as $listener) {
  2.             if ($stoppable && $event->isPropagationStopped()) {
  3.                 break;
  4.             }
  5.             $listener($event$eventName$this);
  6.         }
  7.     }
  8.     /**
  9.      * Sorts the internal list of listeners for the given event by priority.
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.         try {
  2.             $this->beforeDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($event$eventName);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
  1.      * @throws \Exception
  2.      */
  3.     private function handleThrowable(\Throwable $eRequest $requestint $type): Response
  4.     {
  5.         $event = new ExceptionEvent($this$request$type$e);
  6.         $this->dispatcher->dispatch($eventKernelEvents::EXCEPTION);
  7.         // a listener might have replaced the exception
  8.         $e $event->getThrowable();
  9.         if (!$event->hasResponse()) {
  1.                 $this->finishRequest($request$type);
  2.                 throw $e;
  3.             }
  4.             return $this->handleThrowable($e$request$type);
  5.         }
  6.     }
  7.     /**
  8.      * {@inheritdoc}
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.     Request::setTrustedHosts([$trustedHosts]);
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

Doctrine\DBAL\Driver\PDO\ Exception

SQLSTATE[HY000] [2002] Connection refused

  1.  */
  2. final class Exception extends PDOException
  3. {
  4.     public static function new(\PDOException $exception): self
  5.     {
  6.         return new self($exception);
  7.     }
  8. }
  1.         try {
  2.             parent::__construct($dsn, (string) $user, (string) $password, (array) $options);
  3.             $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [Statement::class, []]);
  4.             $this->setAttribute(PDO::ATTR_ERRMODEPDO::ERRMODE_EXCEPTION);
  5.         } catch (PDOException $exception) {
  6.             throw Exception::new($exception);
  7.         }
  8.     }
  9.     /**
  10.      * {@inheritdoc}
  1.      */
  2.     public function connect(array $params$username null$password null, array $driverOptions = [])
  3.     {
  4.         try {
  5.             $conn = new PDO\Connection(
  6.                 $this->constructPdoDsn($params),
  7.                 $username,
  8.                 $password,
  9.                 $driverOptions
  10.             );
  11.         } catch (PDOException $e) {
  1.         $driverOptions $this->params['driverOptions'] ?? [];
  2.         $user          $this->params['user'] ?? null;
  3.         $password      $this->params['password'] ?? null;
  4.         $this->_conn $this->_driver->connect($this->params$user$password$driverOptions);
  5.         $this->transactionNestingLevel 0;
  6.         if ($this->autoCommit === false) {
  7.             $this->beginTransaction();
  1.      *
  2.      * @return DriverConnection
  3.      */
  4.     public function getWrappedConnection()
  5.     {
  6.         $this->connect();
  7.         assert($this->_conn !== null);
  8.         return $this->_conn;
  9.     }
  1.      * @param Connection $conn The connection on which the statement should be executed.
  2.      */
  3.     public function __construct($sqlConnection $conn)
  4.     {
  5.         $this->sql      $sql;
  6.         $this->stmt     $conn->getWrappedConnection()->prepare($sql);
  7.         $this->conn     $conn;
  8.         $this->platform $conn->getDatabasePlatform();
  9.     }
  10.     /**
  1.      * @throws Exception
  2.      */
  3.     public function prepare($sql)
  4.     {
  5.         try {
  6.             $stmt = new Statement($sql$this);
  7.         } catch (Throwable $e) {
  8.             $this->handleExceptionDuringQuery($e$sql);
  9.         }
  10.         $stmt->setFetchMode($this->defaultFetchMode);
  1.     public function getTelephoneTypes() {
  2.         $sql "
  3.             SELECT *
  4.             FROM CLT_STC_typeTelephone
  5.         ";
  6.         $stmt $this->conn->prepare($sql);
  7.         $stmt->execute();
  8.         return $stmt->fetchAll();
  9.     }
  10.     /**
  1.     public function __construct(TelephoneRepository $telephoneRepositoryTelephoneTypeFormatter $telephoneTypeFormatter) {
  2.         $this->types = [];
  3.         if (! (strcmp(php_sapi_name(), 'cli') == 0)) {
  4.             $data $telephoneRepository->getTelephoneTypes();
  5.             foreach($data as $type) {
  6.                 $this->types[] = $telephoneTypeFormatter->formatToModel($type);
  7.             }
  8.         }
  9.     }
  1.      *
  2.      * @return \Mycelium\Bundle\SymfonyCustomerBundle\Helper\TelephoneTypeHelper
  3.      */
  4.     protected function getTelephoneTypeHelperService()
  5.     {
  6.         return $this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Helper\\TelephoneTypeHelper'] = new \Mycelium\Bundle\SymfonyCustomerBundle\Helper\TelephoneTypeHelper(($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Repository\\TelephoneRepository'] ?? $this->getTelephoneRepositoryService()), ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\TelephoneTypeFormatter'] ?? ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\TelephoneTypeFormatter'] = new \Mycelium\Bundle\SymfonyCustomerBundle\Formatter\TelephoneTypeFormatter())));
  7.     }
  8.     /**
  9.      * Gets the public 'Mycelium\Bundle\SymfonyCustomerBundle\Manager\AddressManager' shared service.
  10.      *
App_KernelDevDebugContainer->getTelephoneTypeHelperService() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 720)
  1.      *
  2.      * @return \Mycelium\Bundle\SymfonyCustomerBundle\Manager\ContactManager
  3.      */
  4.     protected function getContactManagerService()
  5.     {
  6.         return $this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Manager\\ContactManager'] = new \Mycelium\Bundle\SymfonyCustomerBundle\Manager\ContactManager(($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Repository\\ContactRepository'] ?? $this->getContactRepositoryService()), ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\ContactFormatter'] ?? ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\ContactFormatter'] = new \Mycelium\Bundle\SymfonyCustomerBundle\Formatter\ContactFormatter())), ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\ContactLoginFormatter'] ?? ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\ContactLoginFormatter'] = new \Mycelium\Bundle\SymfonyCustomerBundle\Formatter\ContactLoginFormatter())), ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\TelephoneFormatter'] ?? ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\TelephoneFormatter'] = new \Mycelium\Bundle\SymfonyCustomerBundle\Formatter\TelephoneFormatter())), ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Helper\\TelephoneTypeHelper'] ?? $this->getTelephoneTypeHelperService()));
  7.     }
  8.     /**
  9.      * Gets the public 'Mycelium\Bundle\SymfonyCustomerBundle\Manager\CustomerManager' shared service.
  10.      *
App_KernelDevDebugContainer->getContactManagerService() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 4197)
  1.         if (isset($this->privates['Mycelium\\Bundle\\SymfonyProductBundle\\ProductService'])) {
  2.             return $this->privates['Mycelium\\Bundle\\SymfonyProductBundle\\ProductService'];
  3.         }
  4.         return $this->privates['Mycelium\\Bundle\\SymfonyProductBundle\\ProductService'] = new \Mycelium\Bundle\SymfonyProductBundle\ProductService(($this->services['doctrine'] ?? $this->getDoctrineService()), ($this->privates['security.helper'] ?? $this->getSecurity_HelperService()), $a, ($this->services['cache.app'] ?? $this->getCache_AppService()), ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Manager\\ContactManager'] ?? $this->getContactManagerService()));
  5.     }
  6.     /**
  7.      * Gets the private 'annotations.cache' shared service.
  8.      *
App_KernelDevDebugContainer->getProductServiceService() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 927)
  1.      *
  2.      * @return \Mycelium\Bundle\SymfonyOrderBundle\Repository\BasketRepository
  3.      */
  4.     protected function getBasketRepositoryService()
  5.     {
  6.         $a = ($this->privates['Mycelium\\Bundle\\SymfonyProductBundle\\ProductService'] ?? $this->getProductServiceService());
  7.         if (isset($this->services['Mycelium\\Bundle\\SymfonyOrderBundle\\Repository\\BasketRepository'])) {
  8.             return $this->services['Mycelium\\Bundle\\SymfonyOrderBundle\\Repository\\BasketRepository'];
  9.         }
  10.         $b = ($this->services['twig'] ?? $this->getTwigService());
App_KernelDevDebugContainer->getBasketRepositoryService() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 850)
  1.      *
  2.      * @return \Mycelium\Bundle\SymfonyOrderBundle\Manager\BasketManager
  3.      */
  4.     protected function getBasketManagerService()
  5.     {
  6.         $a = ($this->services['Mycelium\\Bundle\\SymfonyOrderBundle\\Repository\\BasketRepository'] ?? $this->getBasketRepositoryService());
  7.         if (isset($this->services['Mycelium\\Bundle\\SymfonyOrderBundle\\Manager\\BasketManager'])) {
  8.             return $this->services['Mycelium\\Bundle\\SymfonyOrderBundle\\Manager\\BasketManager'];
  9.         }
  10.         $b = ($this->privates['Mycelium\\Bundle\\SymfonyProductBundle\\ProductService'] ?? $this->getProductServiceService());
App_KernelDevDebugContainer->getBasketManagerService() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 495)
  1.      *
  2.      * @return \App\Service\ApplicationGlobalsVariablesService
  3.      */
  4.     protected function getApplicationGlobalsVariablesService2Service()
  5.     {
  6.         $this->services['ApplicationGlobalsVariablesService'] = $instance = new \App\Service\ApplicationGlobalsVariablesService(($this->services['Mycelium\\Bundle\\SymfonyOrderBundle\\Manager\\BasketManager'] ?? $this->getBasketManagerService()), ($this->services['App\\Service\\VatService'] ?? $this->getVatServiceService()));
  7.         $instance->setContainer(($this->privates['.service_locator.g9CqTPp'] ?? $this->get_ServiceLocator_G9CqTPpService())->withContext('ApplicationGlobalsVariablesService'$this));
  8.         return $instance;
  9.     }
App_KernelDevDebugContainer->getApplicationGlobalsVariablesService2Service() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 3991)
  1.      *
  2.      * @return \App\EventSubscriber\applicationGlobalsVariablesSubscriber
  3.      */
  4.     protected function getApplicationGlobalsVariablesSubscriberService()
  5.     {
  6.         return $this->privates['App\\EventSubscriber\\applicationGlobalsVariablesSubscriber'] = new \App\EventSubscriber\applicationGlobalsVariablesSubscriber(($this->services['ApplicationGlobalsVariablesService'] ?? $this->getApplicationGlobalsVariablesService2Service()));
  7.     }
  8.     /**
  9.      * Gets the private 'App\Form\FilterFormType' shared autowired service.
  10.      *
App_KernelDevDebugContainer->getApplicationGlobalsVariablesSubscriberService() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 1627)
  1.         }, => 'onKernelRequest'], 20);
  2.         $instance->addListener('kernel.response', [=> function () {
  3.             return ($this->privates['App\\EventSubscriber\\ResponseSubscriber'] ?? ($this->privates['App\\EventSubscriber\\ResponseSubscriber'] = new \App\EventSubscriber\ResponseSubscriber()));
  4.         }, => 'onKernelResponse'], 0);
  5.         $instance->addListener('kernel.request', [=> function () {
  6.             return ($this->privates['App\\EventSubscriber\\applicationGlobalsVariablesSubscriber'] ?? $this->getApplicationGlobalsVariablesSubscriberService());
  7.         }, => 'onKernelRequest'], 4096);
  8.         $instance->addListener('console.command', [=> function () {
  9.             return ($this->privates['App\\EventSubscriber\\applicationGlobalsVariablesSubscriber'] ?? $this->getApplicationGlobalsVariablesSubscriberService());
  10.         }, => 'onCommandStart'], 4096);
  11.         $instance->addListener('kernel.response', [=> function () {
  1.             foreach ($listeners as &$listener) {
  2.                 $closure = &$this->optimized[$eventName][];
  3.                 if (\is_array($listener) && isset($listener[0]) && $listener[0] instanceof \Closure && >= \count($listener)) {
  4.                     $closure = static function (...$args) use (&$listener, &$closure) {
  5.                         if ($listener[0] instanceof \Closure) {
  6.                             $listener[0] = $listener[0]();
  7.                             $listener[1] = $listener[1] ?? '__invoke';
  8.                         }
  9.                         ($closure = \Closure::fromCallable($listener))(...$args);
  10.                     };
  11.                 } else {
in /var/www/123roulement.com/web/vendor/symfony/event-dispatcher/EventDispatcher.php :: Symfony\Component\EventDispatcher\{closure} (line 230)
  1.         foreach ($listeners as $listener) {
  2.             if ($stoppable && $event->isPropagationStopped()) {
  3.                 break;
  4.             }
  5.             $listener($event$eventName$this);
  6.         }
  7.     }
  8.     /**
  9.      * Sorts the internal list of listeners for the given event by priority.
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.         try {
  2.             $this->beforeDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($event$eventName);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
  1.     {
  2.         $this->requestStack->push($request);
  3.         // request
  4.         $event = new RequestEvent($this$request$type);
  5.         $this->dispatcher->dispatch($eventKernelEvents::REQUEST);
  6.         if ($event->hasResponse()) {
  7.             return $this->filterResponse($event->getResponse(), $request$type);
  8.         }
  1.     public function handle(Request $requestint $type HttpKernelInterface::MASTER_REQUESTbool $catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $exception $event->getThrowable();
  2.         $request $this->duplicateRequest($exception$event->getRequest());
  3.         try {
  4.             $response $event->getKernel()->handle($requestHttpKernelInterface::SUB_REQUESTfalse);
  5.         } catch (\Exception $e) {
  6.             $f FlattenException::createFromThrowable($e);
  7.             $this->logException($esprintf('Exception thrown when handling an exception (%s: %s at %s line %s)'$f->getClass(), $f->getMessage(), $e->getFile(), $e->getLine()));
  1.         $this->called true;
  2.         $this->priority $dispatcher->getListenerPriority($eventName$this->listener);
  3.         $e $this->stopwatch->start($this->name'event_listener');
  4.         ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         if ($e->isStarted()) {
  6.             $e->stop();
  7.         }
  1.         foreach ($listeners as $listener) {
  2.             if ($stoppable && $event->isPropagationStopped()) {
  3.                 break;
  4.             }
  5.             $listener($event$eventName$this);
  6.         }
  7.     }
  8.     /**
  9.      * Sorts the internal list of listeners for the given event by priority.
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.         try {
  2.             $this->beforeDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($event$eventName);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
  1.      * @throws \Exception
  2.      */
  3.     private function handleThrowable(\Throwable $eRequest $requestint $type): Response
  4.     {
  5.         $event = new ExceptionEvent($this$request$type$e);
  6.         $this->dispatcher->dispatch($eventKernelEvents::EXCEPTION);
  7.         // a listener might have replaced the exception
  8.         $e $event->getThrowable();
  9.         if (!$event->hasResponse()) {
  1.                 $this->finishRequest($request$type);
  2.                 throw $e;
  3.             }
  4.             return $this->handleThrowable($e$request$type);
  5.         }
  6.     }
  7.     /**
  8.      * {@inheritdoc}
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.     Request::setTrustedHosts([$trustedHosts]);
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

PDOException

SQLSTATE[HY000] [2002] Connection refused

  1.      * @throws PDOException In case of an error.
  2.      */
  3.     public function __construct($dsn$user null$password null, ?array $options null)
  4.     {
  5.         try {
  6.             parent::__construct($dsn, (string) $user, (string) $password, (array) $options);
  7.             $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [Statement::class, []]);
  8.             $this->setAttribute(PDO::ATTR_ERRMODEPDO::ERRMODE_EXCEPTION);
  9.         } catch (PDOException $exception) {
  10.             throw Exception::new($exception);
  11.         }
  1.      * @throws PDOException In case of an error.
  2.      */
  3.     public function __construct($dsn$user null$password null, ?array $options null)
  4.     {
  5.         try {
  6.             parent::__construct($dsn, (string) $user, (string) $password, (array) $options);
  7.             $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [Statement::class, []]);
  8.             $this->setAttribute(PDO::ATTR_ERRMODEPDO::ERRMODE_EXCEPTION);
  9.         } catch (PDOException $exception) {
  10.             throw Exception::new($exception);
  11.         }
  1.      */
  2.     public function connect(array $params$username null$password null, array $driverOptions = [])
  3.     {
  4.         try {
  5.             $conn = new PDO\Connection(
  6.                 $this->constructPdoDsn($params),
  7.                 $username,
  8.                 $password,
  9.                 $driverOptions
  10.             );
  11.         } catch (PDOException $e) {
  1.         $driverOptions $this->params['driverOptions'] ?? [];
  2.         $user          $this->params['user'] ?? null;
  3.         $password      $this->params['password'] ?? null;
  4.         $this->_conn $this->_driver->connect($this->params$user$password$driverOptions);
  5.         $this->transactionNestingLevel 0;
  6.         if ($this->autoCommit === false) {
  7.             $this->beginTransaction();
  1.      *
  2.      * @return DriverConnection
  3.      */
  4.     public function getWrappedConnection()
  5.     {
  6.         $this->connect();
  7.         assert($this->_conn !== null);
  8.         return $this->_conn;
  9.     }
  1.      * @param Connection $conn The connection on which the statement should be executed.
  2.      */
  3.     public function __construct($sqlConnection $conn)
  4.     {
  5.         $this->sql      $sql;
  6.         $this->stmt     $conn->getWrappedConnection()->prepare($sql);
  7.         $this->conn     $conn;
  8.         $this->platform $conn->getDatabasePlatform();
  9.     }
  10.     /**
  1.      * @throws Exception
  2.      */
  3.     public function prepare($sql)
  4.     {
  5.         try {
  6.             $stmt = new Statement($sql$this);
  7.         } catch (Throwable $e) {
  8.             $this->handleExceptionDuringQuery($e$sql);
  9.         }
  10.         $stmt->setFetchMode($this->defaultFetchMode);
  1.     public function getTelephoneTypes() {
  2.         $sql "
  3.             SELECT *
  4.             FROM CLT_STC_typeTelephone
  5.         ";
  6.         $stmt $this->conn->prepare($sql);
  7.         $stmt->execute();
  8.         return $stmt->fetchAll();
  9.     }
  10.     /**
  1.     public function __construct(TelephoneRepository $telephoneRepositoryTelephoneTypeFormatter $telephoneTypeFormatter) {
  2.         $this->types = [];
  3.         if (! (strcmp(php_sapi_name(), 'cli') == 0)) {
  4.             $data $telephoneRepository->getTelephoneTypes();
  5.             foreach($data as $type) {
  6.                 $this->types[] = $telephoneTypeFormatter->formatToModel($type);
  7.             }
  8.         }
  9.     }
  1.      *
  2.      * @return \Mycelium\Bundle\SymfonyCustomerBundle\Helper\TelephoneTypeHelper
  3.      */
  4.     protected function getTelephoneTypeHelperService()
  5.     {
  6.         return $this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Helper\\TelephoneTypeHelper'] = new \Mycelium\Bundle\SymfonyCustomerBundle\Helper\TelephoneTypeHelper(($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Repository\\TelephoneRepository'] ?? $this->getTelephoneRepositoryService()), ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\TelephoneTypeFormatter'] ?? ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\TelephoneTypeFormatter'] = new \Mycelium\Bundle\SymfonyCustomerBundle\Formatter\TelephoneTypeFormatter())));
  7.     }
  8.     /**
  9.      * Gets the public 'Mycelium\Bundle\SymfonyCustomerBundle\Manager\AddressManager' shared service.
  10.      *
App_KernelDevDebugContainer->getTelephoneTypeHelperService() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 720)
  1.      *
  2.      * @return \Mycelium\Bundle\SymfonyCustomerBundle\Manager\ContactManager
  3.      */
  4.     protected function getContactManagerService()
  5.     {
  6.         return $this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Manager\\ContactManager'] = new \Mycelium\Bundle\SymfonyCustomerBundle\Manager\ContactManager(($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Repository\\ContactRepository'] ?? $this->getContactRepositoryService()), ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\ContactFormatter'] ?? ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\ContactFormatter'] = new \Mycelium\Bundle\SymfonyCustomerBundle\Formatter\ContactFormatter())), ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\ContactLoginFormatter'] ?? ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\ContactLoginFormatter'] = new \Mycelium\Bundle\SymfonyCustomerBundle\Formatter\ContactLoginFormatter())), ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\TelephoneFormatter'] ?? ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\TelephoneFormatter'] = new \Mycelium\Bundle\SymfonyCustomerBundle\Formatter\TelephoneFormatter())), ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Helper\\TelephoneTypeHelper'] ?? $this->getTelephoneTypeHelperService()));
  7.     }
  8.     /**
  9.      * Gets the public 'Mycelium\Bundle\SymfonyCustomerBundle\Manager\CustomerManager' shared service.
  10.      *
App_KernelDevDebugContainer->getContactManagerService() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 4197)
  1.         if (isset($this->privates['Mycelium\\Bundle\\SymfonyProductBundle\\ProductService'])) {
  2.             return $this->privates['Mycelium\\Bundle\\SymfonyProductBundle\\ProductService'];
  3.         }
  4.         return $this->privates['Mycelium\\Bundle\\SymfonyProductBundle\\ProductService'] = new \Mycelium\Bundle\SymfonyProductBundle\ProductService(($this->services['doctrine'] ?? $this->getDoctrineService()), ($this->privates['security.helper'] ?? $this->getSecurity_HelperService()), $a, ($this->services['cache.app'] ?? $this->getCache_AppService()), ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Manager\\ContactManager'] ?? $this->getContactManagerService()));
  5.     }
  6.     /**
  7.      * Gets the private 'annotations.cache' shared service.
  8.      *
App_KernelDevDebugContainer->getProductServiceService() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 927)
  1.      *
  2.      * @return \Mycelium\Bundle\SymfonyOrderBundle\Repository\BasketRepository
  3.      */
  4.     protected function getBasketRepositoryService()
  5.     {
  6.         $a = ($this->privates['Mycelium\\Bundle\\SymfonyProductBundle\\ProductService'] ?? $this->getProductServiceService());
  7.         if (isset($this->services['Mycelium\\Bundle\\SymfonyOrderBundle\\Repository\\BasketRepository'])) {
  8.             return $this->services['Mycelium\\Bundle\\SymfonyOrderBundle\\Repository\\BasketRepository'];
  9.         }
  10.         $b = ($this->services['twig'] ?? $this->getTwigService());
App_KernelDevDebugContainer->getBasketRepositoryService() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 850)
  1.      *
  2.      * @return \Mycelium\Bundle\SymfonyOrderBundle\Manager\BasketManager
  3.      */
  4.     protected function getBasketManagerService()
  5.     {
  6.         $a = ($this->services['Mycelium\\Bundle\\SymfonyOrderBundle\\Repository\\BasketRepository'] ?? $this->getBasketRepositoryService());
  7.         if (isset($this->services['Mycelium\\Bundle\\SymfonyOrderBundle\\Manager\\BasketManager'])) {
  8.             return $this->services['Mycelium\\Bundle\\SymfonyOrderBundle\\Manager\\BasketManager'];
  9.         }
  10.         $b = ($this->privates['Mycelium\\Bundle\\SymfonyProductBundle\\ProductService'] ?? $this->getProductServiceService());
App_KernelDevDebugContainer->getBasketManagerService() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 495)
  1.      *
  2.      * @return \App\Service\ApplicationGlobalsVariablesService
  3.      */
  4.     protected function getApplicationGlobalsVariablesService2Service()
  5.     {
  6.         $this->services['ApplicationGlobalsVariablesService'] = $instance = new \App\Service\ApplicationGlobalsVariablesService(($this->services['Mycelium\\Bundle\\SymfonyOrderBundle\\Manager\\BasketManager'] ?? $this->getBasketManagerService()), ($this->services['App\\Service\\VatService'] ?? $this->getVatServiceService()));
  7.         $instance->setContainer(($this->privates['.service_locator.g9CqTPp'] ?? $this->get_ServiceLocator_G9CqTPpService())->withContext('ApplicationGlobalsVariablesService'$this));
  8.         return $instance;
  9.     }
App_KernelDevDebugContainer->getApplicationGlobalsVariablesService2Service() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 3991)
  1.      *
  2.      * @return \App\EventSubscriber\applicationGlobalsVariablesSubscriber
  3.      */
  4.     protected function getApplicationGlobalsVariablesSubscriberService()
  5.     {
  6.         return $this->privates['App\\EventSubscriber\\applicationGlobalsVariablesSubscriber'] = new \App\EventSubscriber\applicationGlobalsVariablesSubscriber(($this->services['ApplicationGlobalsVariablesService'] ?? $this->getApplicationGlobalsVariablesService2Service()));
  7.     }
  8.     /**
  9.      * Gets the private 'App\Form\FilterFormType' shared autowired service.
  10.      *
App_KernelDevDebugContainer->getApplicationGlobalsVariablesSubscriberService() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 1627)
  1.         }, => 'onKernelRequest'], 20);
  2.         $instance->addListener('kernel.response', [=> function () {
  3.             return ($this->privates['App\\EventSubscriber\\ResponseSubscriber'] ?? ($this->privates['App\\EventSubscriber\\ResponseSubscriber'] = new \App\EventSubscriber\ResponseSubscriber()));
  4.         }, => 'onKernelResponse'], 0);
  5.         $instance->addListener('kernel.request', [=> function () {
  6.             return ($this->privates['App\\EventSubscriber\\applicationGlobalsVariablesSubscriber'] ?? $this->getApplicationGlobalsVariablesSubscriberService());
  7.         }, => 'onKernelRequest'], 4096);
  8.         $instance->addListener('console.command', [=> function () {
  9.             return ($this->privates['App\\EventSubscriber\\applicationGlobalsVariablesSubscriber'] ?? $this->getApplicationGlobalsVariablesSubscriberService());
  10.         }, => 'onCommandStart'], 4096);
  11.         $instance->addListener('kernel.response', [=> function () {
  1.             foreach ($listeners as &$listener) {
  2.                 $closure = &$this->optimized[$eventName][];
  3.                 if (\is_array($listener) && isset($listener[0]) && $listener[0] instanceof \Closure && >= \count($listener)) {
  4.                     $closure = static function (...$args) use (&$listener, &$closure) {
  5.                         if ($listener[0] instanceof \Closure) {
  6.                             $listener[0] = $listener[0]();
  7.                             $listener[1] = $listener[1] ?? '__invoke';
  8.                         }
  9.                         ($closure = \Closure::fromCallable($listener))(...$args);
  10.                     };
  11.                 } else {
in /var/www/123roulement.com/web/vendor/symfony/event-dispatcher/EventDispatcher.php :: Symfony\Component\EventDispatcher\{closure} (line 230)
  1.         foreach ($listeners as $listener) {
  2.             if ($stoppable && $event->isPropagationStopped()) {
  3.                 break;
  4.             }
  5.             $listener($event$eventName$this);
  6.         }
  7.     }
  8.     /**
  9.      * Sorts the internal list of listeners for the given event by priority.
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.         try {
  2.             $this->beforeDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($event$eventName);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
  1.     {
  2.         $this->requestStack->push($request);
  3.         // request
  4.         $event = new RequestEvent($this$request$type);
  5.         $this->dispatcher->dispatch($eventKernelEvents::REQUEST);
  6.         if ($event->hasResponse()) {
  7.             return $this->filterResponse($event->getResponse(), $request$type);
  8.         }
  1.     public function handle(Request $requestint $type HttpKernelInterface::MASTER_REQUESTbool $catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $exception $event->getThrowable();
  2.         $request $this->duplicateRequest($exception$event->getRequest());
  3.         try {
  4.             $response $event->getKernel()->handle($requestHttpKernelInterface::SUB_REQUESTfalse);
  5.         } catch (\Exception $e) {
  6.             $f FlattenException::createFromThrowable($e);
  7.             $this->logException($esprintf('Exception thrown when handling an exception (%s: %s at %s line %s)'$f->getClass(), $f->getMessage(), $e->getFile(), $e->getLine()));
  1.         $this->called true;
  2.         $this->priority $dispatcher->getListenerPriority($eventName$this->listener);
  3.         $e $this->stopwatch->start($this->name'event_listener');
  4.         ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         if ($e->isStarted()) {
  6.             $e->stop();
  7.         }
  1.         foreach ($listeners as $listener) {
  2.             if ($stoppable && $event->isPropagationStopped()) {
  3.                 break;
  4.             }
  5.             $listener($event$eventName$this);
  6.         }
  7.     }
  8.     /**
  9.      * Sorts the internal list of listeners for the given event by priority.
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.         try {
  2.             $this->beforeDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($event$eventName);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
  1.      * @throws \Exception
  2.      */
  3.     private function handleThrowable(\Throwable $eRequest $requestint $type): Response
  4.     {
  5.         $event = new ExceptionEvent($this$request$type$e);
  6.         $this->dispatcher->dispatch($eventKernelEvents::EXCEPTION);
  7.         // a listener might have replaced the exception
  8.         $e $event->getThrowable();
  9.         if (!$event->hasResponse()) {
  1.                 $this->finishRequest($request$type);
  2.                 throw $e;
  3.             }
  4.             return $this->handleThrowable($e$request$type);
  5.         }
  6.     }
  7.     /**
  8.      * {@inheritdoc}
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.     Request::setTrustedHosts([$trustedHosts]);
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

Doctrine\DBAL\Exception\ ConnectionException

An exception occurred in driver: SQLSTATE[HY000] [2002] Connection refused

  1.             case '1227':
  2.             case '1370':
  3.             case '1429':
  4.             case '2002':
  5.             case '2005':
  6.                 return new ConnectionException($message$exception);
  7.             case '2006':
  8.                 return new ConnectionLost($message$exception);
  9.             case '1048':
  1.         if ($driverEx instanceof DriverException) {
  2.             return $driverEx;
  3.         }
  4.         if ($driver instanceof ExceptionConverterDriver && $driverEx instanceof DeprecatedDriverException) {
  5.             return $driver->convertException($msg$driverEx);
  6.         }
  7.         return new Exception($msg0$driverEx);
  8.     }
  1.      *
  2.      * @return Exception
  3.      */
  4.     public static function driverException(Driver $driverThrowable $driverEx)
  5.     {
  6.         return static::wrapException($driver$driverEx'An exception occurred in driver: ' $driverEx->getMessage());
  7.     }
  8.     /**
  9.      * @return Exception
  10.      */
  1.                 $username,
  2.                 $password,
  3.                 $driverOptions
  4.             );
  5.         } catch (PDOException $e) {
  6.             throw Exception::driverException($this$e);
  7.         }
  8.         return $conn;
  9.     }
  1.         $driverOptions $this->params['driverOptions'] ?? [];
  2.         $user          $this->params['user'] ?? null;
  3.         $password      $this->params['password'] ?? null;
  4.         $this->_conn $this->_driver->connect($this->params$user$password$driverOptions);
  5.         $this->transactionNestingLevel 0;
  6.         if ($this->autoCommit === false) {
  7.             $this->beginTransaction();
  1.      *
  2.      * @return DriverConnection
  3.      */
  4.     public function getWrappedConnection()
  5.     {
  6.         $this->connect();
  7.         assert($this->_conn !== null);
  8.         return $this->_conn;
  9.     }
  1.      * @param Connection $conn The connection on which the statement should be executed.
  2.      */
  3.     public function __construct($sqlConnection $conn)
  4.     {
  5.         $this->sql      $sql;
  6.         $this->stmt     $conn->getWrappedConnection()->prepare($sql);
  7.         $this->conn     $conn;
  8.         $this->platform $conn->getDatabasePlatform();
  9.     }
  10.     /**
  1.      * @throws Exception
  2.      */
  3.     public function prepare($sql)
  4.     {
  5.         try {
  6.             $stmt = new Statement($sql$this);
  7.         } catch (Throwable $e) {
  8.             $this->handleExceptionDuringQuery($e$sql);
  9.         }
  10.         $stmt->setFetchMode($this->defaultFetchMode);
  1.     public function getTelephoneTypes() {
  2.         $sql "
  3.             SELECT *
  4.             FROM CLT_STC_typeTelephone
  5.         ";
  6.         $stmt $this->conn->prepare($sql);
  7.         $stmt->execute();
  8.         return $stmt->fetchAll();
  9.     }
  10.     /**
  1.     public function __construct(TelephoneRepository $telephoneRepositoryTelephoneTypeFormatter $telephoneTypeFormatter) {
  2.         $this->types = [];
  3.         if (! (strcmp(php_sapi_name(), 'cli') == 0)) {
  4.             $data $telephoneRepository->getTelephoneTypes();
  5.             foreach($data as $type) {
  6.                 $this->types[] = $telephoneTypeFormatter->formatToModel($type);
  7.             }
  8.         }
  9.     }
  1.      *
  2.      * @return \Mycelium\Bundle\SymfonyCustomerBundle\Helper\TelephoneTypeHelper
  3.      */
  4.     protected function getTelephoneTypeHelperService()
  5.     {
  6.         return $this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Helper\\TelephoneTypeHelper'] = new \Mycelium\Bundle\SymfonyCustomerBundle\Helper\TelephoneTypeHelper(($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Repository\\TelephoneRepository'] ?? $this->getTelephoneRepositoryService()), ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\TelephoneTypeFormatter'] ?? ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\TelephoneTypeFormatter'] = new \Mycelium\Bundle\SymfonyCustomerBundle\Formatter\TelephoneTypeFormatter())));
  7.     }
  8.     /**
  9.      * Gets the public 'Mycelium\Bundle\SymfonyCustomerBundle\Manager\AddressManager' shared service.
  10.      *
App_KernelDevDebugContainer->getTelephoneTypeHelperService() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 720)
  1.      *
  2.      * @return \Mycelium\Bundle\SymfonyCustomerBundle\Manager\ContactManager
  3.      */
  4.     protected function getContactManagerService()
  5.     {
  6.         return $this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Manager\\ContactManager'] = new \Mycelium\Bundle\SymfonyCustomerBundle\Manager\ContactManager(($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Repository\\ContactRepository'] ?? $this->getContactRepositoryService()), ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\ContactFormatter'] ?? ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\ContactFormatter'] = new \Mycelium\Bundle\SymfonyCustomerBundle\Formatter\ContactFormatter())), ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\ContactLoginFormatter'] ?? ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\ContactLoginFormatter'] = new \Mycelium\Bundle\SymfonyCustomerBundle\Formatter\ContactLoginFormatter())), ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\TelephoneFormatter'] ?? ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\TelephoneFormatter'] = new \Mycelium\Bundle\SymfonyCustomerBundle\Formatter\TelephoneFormatter())), ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Helper\\TelephoneTypeHelper'] ?? $this->getTelephoneTypeHelperService()));
  7.     }
  8.     /**
  9.      * Gets the public 'Mycelium\Bundle\SymfonyCustomerBundle\Manager\CustomerManager' shared service.
  10.      *
App_KernelDevDebugContainer->getContactManagerService() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 4197)
  1.         if (isset($this->privates['Mycelium\\Bundle\\SymfonyProductBundle\\ProductService'])) {
  2.             return $this->privates['Mycelium\\Bundle\\SymfonyProductBundle\\ProductService'];
  3.         }
  4.         return $this->privates['Mycelium\\Bundle\\SymfonyProductBundle\\ProductService'] = new \Mycelium\Bundle\SymfonyProductBundle\ProductService(($this->services['doctrine'] ?? $this->getDoctrineService()), ($this->privates['security.helper'] ?? $this->getSecurity_HelperService()), $a, ($this->services['cache.app'] ?? $this->getCache_AppService()), ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Manager\\ContactManager'] ?? $this->getContactManagerService()));
  5.     }
  6.     /**
  7.      * Gets the private 'annotations.cache' shared service.
  8.      *
App_KernelDevDebugContainer->getProductServiceService() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 2429)
  1.         $instance->addExtension(new \Symfony\Bridge\Twig\Extension\DumpExtension(($this->services['var_dumper.cloner'] ?? $this->getVarDumper_ClonerService()), ($this->privates['var_dumper.html_dumper'] ?? $this->getVarDumper_HtmlDumperService())));
  2.         $instance->addExtension(new \Twig\Extensions\ArrayExtension());
  3.         $instance->addExtension(new \Twig\Extensions\DateExtension());
  4.         $instance->addExtension(new \Twig\Extensions\IntlExtension());
  5.         $instance->addExtension(new \Twig\Extensions\TextExtension());
  6.         $instance->addExtension(new \App\Twig\AppExtension($f, ($this->privates['Mycelium\\Bundle\\SymfonyProductBundle\\ProductService'] ?? $this->getProductServiceService()), ($this->services['Mycelium\\Bundle\\SymfonyOrderBundle\\Manager\\BasketManager'] ?? $this->getBasketManagerService()), ($this->services['App\\Controller\\CustomerController'] ?? $this->getCustomerControllerService()), ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Manager\\ContactManager'] ?? $this->getContactManagerService()), ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Helper\\CountryHelper'] ?? $this->getCountryHelperService()), $this$instance, ($this->services['doctrine'] ?? $this->getDoctrineService()), $g, ($this->services['Mycelium\\Bundle\\SymfonyOrderBundle\\Manager\\OrderManager'] ?? $this->getOrderManagerService()), ($this->privates['App\\Util\\Mycelium\\API'] ?? ($this->privates['App\\Util\\Mycelium\\API'] = new \App\Util\Mycelium\API()))));
  7.         $instance->addExtension(new \Twig\CacheExtension\Extension(new \Twig\CacheExtension\CacheStrategy\LifetimeCacheStrategy(new \Twig\CacheExtension\CacheProvider\PsrCacheAdapter($g))));
  8.         $instance->addExtension(new \Twig\Extra\Intl\IntlExtension());
  9.         $instance->addExtension(new \Doctrine\Bundle\DoctrineBundle\Twig\DoctrineExtension());
  10.         $instance->addExtension(new \Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension($h));
  11.         $instance->addExtension(new \Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension(new \Symfony\Component\DependencyInjection\Argument\ServiceLocator($this->getService, [
App_KernelDevDebugContainer->getTwigService() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 4191)
  1.      *
  2.      * @return \Mycelium\Bundle\SymfonyProductBundle\ProductService
  3.      */
  4.     protected function getProductServiceService()
  5.     {
  6.         $a = ($this->services['twig'] ?? $this->getTwigService());
  7.         if (isset($this->privates['Mycelium\\Bundle\\SymfonyProductBundle\\ProductService'])) {
  8.             return $this->privates['Mycelium\\Bundle\\SymfonyProductBundle\\ProductService'];
  9.         }
App_KernelDevDebugContainer->getProductServiceService() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 927)
  1.      *
  2.      * @return \Mycelium\Bundle\SymfonyOrderBundle\Repository\BasketRepository
  3.      */
  4.     protected function getBasketRepositoryService()
  5.     {
  6.         $a = ($this->privates['Mycelium\\Bundle\\SymfonyProductBundle\\ProductService'] ?? $this->getProductServiceService());
  7.         if (isset($this->services['Mycelium\\Bundle\\SymfonyOrderBundle\\Repository\\BasketRepository'])) {
  8.             return $this->services['Mycelium\\Bundle\\SymfonyOrderBundle\\Repository\\BasketRepository'];
  9.         }
  10.         $b = ($this->services['twig'] ?? $this->getTwigService());
App_KernelDevDebugContainer->getBasketRepositoryService() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 850)
  1.      *
  2.      * @return \Mycelium\Bundle\SymfonyOrderBundle\Manager\BasketManager
  3.      */
  4.     protected function getBasketManagerService()
  5.     {
  6.         $a = ($this->services['Mycelium\\Bundle\\SymfonyOrderBundle\\Repository\\BasketRepository'] ?? $this->getBasketRepositoryService());
  7.         if (isset($this->services['Mycelium\\Bundle\\SymfonyOrderBundle\\Manager\\BasketManager'])) {
  8.             return $this->services['Mycelium\\Bundle\\SymfonyOrderBundle\\Manager\\BasketManager'];
  9.         }
  10.         $b = ($this->privates['Mycelium\\Bundle\\SymfonyProductBundle\\ProductService'] ?? $this->getProductServiceService());
App_KernelDevDebugContainer->getBasketManagerService() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 495)
  1.      *
  2.      * @return \App\Service\ApplicationGlobalsVariablesService
  3.      */
  4.     protected function getApplicationGlobalsVariablesService2Service()
  5.     {
  6.         $this->services['ApplicationGlobalsVariablesService'] = $instance = new \App\Service\ApplicationGlobalsVariablesService(($this->services['Mycelium\\Bundle\\SymfonyOrderBundle\\Manager\\BasketManager'] ?? $this->getBasketManagerService()), ($this->services['App\\Service\\VatService'] ?? $this->getVatServiceService()));
  7.         $instance->setContainer(($this->privates['.service_locator.g9CqTPp'] ?? $this->get_ServiceLocator_G9CqTPpService())->withContext('ApplicationGlobalsVariablesService'$this));
  8.         return $instance;
  9.     }
App_KernelDevDebugContainer->getApplicationGlobalsVariablesService2Service() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 3991)
  1.      *
  2.      * @return \App\EventSubscriber\applicationGlobalsVariablesSubscriber
  3.      */
  4.     protected function getApplicationGlobalsVariablesSubscriberService()
  5.     {
  6.         return $this->privates['App\\EventSubscriber\\applicationGlobalsVariablesSubscriber'] = new \App\EventSubscriber\applicationGlobalsVariablesSubscriber(($this->services['ApplicationGlobalsVariablesService'] ?? $this->getApplicationGlobalsVariablesService2Service()));
  7.     }
  8.     /**
  9.      * Gets the private 'App\Form\FilterFormType' shared autowired service.
  10.      *
App_KernelDevDebugContainer->getApplicationGlobalsVariablesSubscriberService() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 1627)
  1.         }, => 'onKernelRequest'], 20);
  2.         $instance->addListener('kernel.response', [=> function () {
  3.             return ($this->privates['App\\EventSubscriber\\ResponseSubscriber'] ?? ($this->privates['App\\EventSubscriber\\ResponseSubscriber'] = new \App\EventSubscriber\ResponseSubscriber()));
  4.         }, => 'onKernelResponse'], 0);
  5.         $instance->addListener('kernel.request', [=> function () {
  6.             return ($this->privates['App\\EventSubscriber\\applicationGlobalsVariablesSubscriber'] ?? $this->getApplicationGlobalsVariablesSubscriberService());
  7.         }, => 'onKernelRequest'], 4096);
  8.         $instance->addListener('console.command', [=> function () {
  9.             return ($this->privates['App\\EventSubscriber\\applicationGlobalsVariablesSubscriber'] ?? $this->getApplicationGlobalsVariablesSubscriberService());
  10.         }, => 'onCommandStart'], 4096);
  11.         $instance->addListener('kernel.response', [=> function () {
  1.         $this->sorted[$eventName] = [];
  2.         foreach ($this->listeners[$eventName] as &$listeners) {
  3.             foreach ($listeners as $k => &$listener) {
  4.                 if (\is_array($listener) && isset($listener[0]) && $listener[0] instanceof \Closure && >= \count($listener)) {
  5.                     $listener[0] = $listener[0]();
  6.                     $listener[1] = $listener[1] ?? '__invoke';
  7.                 }
  8.                 $this->sorted[$eventName][] = $listener;
  9.             }
  10.         }
  1.             if (empty($this->listeners[$eventName])) {
  2.                 return [];
  3.             }
  4.             if (!isset($this->sorted[$eventName])) {
  5.                 $this->sortListeners($eventName);
  6.             }
  7.             return $this->sorted[$eventName];
  8.         }
  1.             $this->orphanedEvents[$this->currentRequestHash][] = $eventName;
  2.             return;
  3.         }
  4.         foreach ($this->dispatcher->getListeners($eventName) as $listener) {
  5.             $priority $this->getListenerPriority($eventName$listener);
  6.             $wrappedListener = new WrappedListener($listener instanceof WrappedListener $listener->getWrappedListener() : $listenernull$this->stopwatch$this);
  7.             $this->wrappedListeners[$eventName][] = $wrappedListener;
  8.             $this->dispatcher->removeListener($eventName$listener);
  9.             $this->dispatcher->addListener($eventName$wrappedListener$priority);
  1.         if (null !== $this->logger && $event instanceof StoppableEventInterface && $event->isPropagationStopped()) {
  2.             $this->logger->debug(sprintf('The "%s" event is already stopped. No listeners have been called.'$eventName));
  3.         }
  4.         $this->preProcess($eventName);
  5.         try {
  6.             $this->beforeDispatch($eventName$event);
  7.             try {
  8.                 $e $this->stopwatch->start($eventName'section');
  9.                 try {
  1.     {
  2.         $this->requestStack->push($request);
  3.         // request
  4.         $event = new RequestEvent($this$request$type);
  5.         $this->dispatcher->dispatch($eventKernelEvents::REQUEST);
  6.         if ($event->hasResponse()) {
  7.             return $this->filterResponse($event->getResponse(), $request$type);
  8.         }
  1.     public function handle(Request $requestint $type HttpKernelInterface::MASTER_REQUESTbool $catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.     Request::setTrustedHosts([$trustedHosts]);
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

Doctrine\DBAL\Driver\PDO\ Exception

SQLSTATE[HY000] [2002] Connection refused

  1.  */
  2. final class Exception extends PDOException
  3. {
  4.     public static function new(\PDOException $exception): self
  5.     {
  6.         return new self($exception);
  7.     }
  8. }
  1.         try {
  2.             parent::__construct($dsn, (string) $user, (string) $password, (array) $options);
  3.             $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [Statement::class, []]);
  4.             $this->setAttribute(PDO::ATTR_ERRMODEPDO::ERRMODE_EXCEPTION);
  5.         } catch (PDOException $exception) {
  6.             throw Exception::new($exception);
  7.         }
  8.     }
  9.     /**
  10.      * {@inheritdoc}
  1.      */
  2.     public function connect(array $params$username null$password null, array $driverOptions = [])
  3.     {
  4.         try {
  5.             $conn = new PDO\Connection(
  6.                 $this->constructPdoDsn($params),
  7.                 $username,
  8.                 $password,
  9.                 $driverOptions
  10.             );
  11.         } catch (PDOException $e) {
  1.         $driverOptions $this->params['driverOptions'] ?? [];
  2.         $user          $this->params['user'] ?? null;
  3.         $password      $this->params['password'] ?? null;
  4.         $this->_conn $this->_driver->connect($this->params$user$password$driverOptions);
  5.         $this->transactionNestingLevel 0;
  6.         if ($this->autoCommit === false) {
  7.             $this->beginTransaction();
  1.      *
  2.      * @return DriverConnection
  3.      */
  4.     public function getWrappedConnection()
  5.     {
  6.         $this->connect();
  7.         assert($this->_conn !== null);
  8.         return $this->_conn;
  9.     }
  1.      * @param Connection $conn The connection on which the statement should be executed.
  2.      */
  3.     public function __construct($sqlConnection $conn)
  4.     {
  5.         $this->sql      $sql;
  6.         $this->stmt     $conn->getWrappedConnection()->prepare($sql);
  7.         $this->conn     $conn;
  8.         $this->platform $conn->getDatabasePlatform();
  9.     }
  10.     /**
  1.      * @throws Exception
  2.      */
  3.     public function prepare($sql)
  4.     {
  5.         try {
  6.             $stmt = new Statement($sql$this);
  7.         } catch (Throwable $e) {
  8.             $this->handleExceptionDuringQuery($e$sql);
  9.         }
  10.         $stmt->setFetchMode($this->defaultFetchMode);
  1.     public function getTelephoneTypes() {
  2.         $sql "
  3.             SELECT *
  4.             FROM CLT_STC_typeTelephone
  5.         ";
  6.         $stmt $this->conn->prepare($sql);
  7.         $stmt->execute();
  8.         return $stmt->fetchAll();
  9.     }
  10.     /**
  1.     public function __construct(TelephoneRepository $telephoneRepositoryTelephoneTypeFormatter $telephoneTypeFormatter) {
  2.         $this->types = [];
  3.         if (! (strcmp(php_sapi_name(), 'cli') == 0)) {
  4.             $data $telephoneRepository->getTelephoneTypes();
  5.             foreach($data as $type) {
  6.                 $this->types[] = $telephoneTypeFormatter->formatToModel($type);
  7.             }
  8.         }
  9.     }
  1.      *
  2.      * @return \Mycelium\Bundle\SymfonyCustomerBundle\Helper\TelephoneTypeHelper
  3.      */
  4.     protected function getTelephoneTypeHelperService()
  5.     {
  6.         return $this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Helper\\TelephoneTypeHelper'] = new \Mycelium\Bundle\SymfonyCustomerBundle\Helper\TelephoneTypeHelper(($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Repository\\TelephoneRepository'] ?? $this->getTelephoneRepositoryService()), ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\TelephoneTypeFormatter'] ?? ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\TelephoneTypeFormatter'] = new \Mycelium\Bundle\SymfonyCustomerBundle\Formatter\TelephoneTypeFormatter())));
  7.     }
  8.     /**
  9.      * Gets the public 'Mycelium\Bundle\SymfonyCustomerBundle\Manager\AddressManager' shared service.
  10.      *
App_KernelDevDebugContainer->getTelephoneTypeHelperService() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 720)
  1.      *
  2.      * @return \Mycelium\Bundle\SymfonyCustomerBundle\Manager\ContactManager
  3.      */
  4.     protected function getContactManagerService()
  5.     {
  6.         return $this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Manager\\ContactManager'] = new \Mycelium\Bundle\SymfonyCustomerBundle\Manager\ContactManager(($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Repository\\ContactRepository'] ?? $this->getContactRepositoryService()), ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\ContactFormatter'] ?? ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\ContactFormatter'] = new \Mycelium\Bundle\SymfonyCustomerBundle\Formatter\ContactFormatter())), ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\ContactLoginFormatter'] ?? ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\ContactLoginFormatter'] = new \Mycelium\Bundle\SymfonyCustomerBundle\Formatter\ContactLoginFormatter())), ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\TelephoneFormatter'] ?? ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Formatter\\TelephoneFormatter'] = new \Mycelium\Bundle\SymfonyCustomerBundle\Formatter\TelephoneFormatter())), ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Helper\\TelephoneTypeHelper'] ?? $this->getTelephoneTypeHelperService()));
  7.     }
  8.     /**
  9.      * Gets the public 'Mycelium\Bundle\SymfonyCustomerBundle\Manager\CustomerManager' shared service.
  10.      *
App_KernelDevDebugContainer->getContactManagerService() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 4197)
  1.         if (isset($this->privates['Mycelium\\Bundle\\SymfonyProductBundle\\ProductService'])) {
  2.             return $this->privates['Mycelium\\Bundle\\SymfonyProductBundle\\ProductService'];
  3.         }
  4.         return $this->privates['Mycelium\\Bundle\\SymfonyProductBundle\\ProductService'] = new \Mycelium\Bundle\SymfonyProductBundle\ProductService(($this->services['doctrine'] ?? $this->getDoctrineService()), ($this->privates['security.helper'] ?? $this->getSecurity_HelperService()), $a, ($this->services['cache.app'] ?? $this->getCache_AppService()), ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Manager\\ContactManager'] ?? $this->getContactManagerService()));
  5.     }
  6.     /**
  7.      * Gets the private 'annotations.cache' shared service.
  8.      *
App_KernelDevDebugContainer->getProductServiceService() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 2429)
  1.         $instance->addExtension(new \Symfony\Bridge\Twig\Extension\DumpExtension(($this->services['var_dumper.cloner'] ?? $this->getVarDumper_ClonerService()), ($this->privates['var_dumper.html_dumper'] ?? $this->getVarDumper_HtmlDumperService())));
  2.         $instance->addExtension(new \Twig\Extensions\ArrayExtension());
  3.         $instance->addExtension(new \Twig\Extensions\DateExtension());
  4.         $instance->addExtension(new \Twig\Extensions\IntlExtension());
  5.         $instance->addExtension(new \Twig\Extensions\TextExtension());
  6.         $instance->addExtension(new \App\Twig\AppExtension($f, ($this->privates['Mycelium\\Bundle\\SymfonyProductBundle\\ProductService'] ?? $this->getProductServiceService()), ($this->services['Mycelium\\Bundle\\SymfonyOrderBundle\\Manager\\BasketManager'] ?? $this->getBasketManagerService()), ($this->services['App\\Controller\\CustomerController'] ?? $this->getCustomerControllerService()), ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Manager\\ContactManager'] ?? $this->getContactManagerService()), ($this->services['Mycelium\\Bundle\\SymfonyCustomerBundle\\Helper\\CountryHelper'] ?? $this->getCountryHelperService()), $this$instance, ($this->services['doctrine'] ?? $this->getDoctrineService()), $g, ($this->services['Mycelium\\Bundle\\SymfonyOrderBundle\\Manager\\OrderManager'] ?? $this->getOrderManagerService()), ($this->privates['App\\Util\\Mycelium\\API'] ?? ($this->privates['App\\Util\\Mycelium\\API'] = new \App\Util\Mycelium\API()))));
  7.         $instance->addExtension(new \Twig\CacheExtension\Extension(new \Twig\CacheExtension\CacheStrategy\LifetimeCacheStrategy(new \Twig\CacheExtension\CacheProvider\PsrCacheAdapter($g))));
  8.         $instance->addExtension(new \Twig\Extra\Intl\IntlExtension());
  9.         $instance->addExtension(new \Doctrine\Bundle\DoctrineBundle\Twig\DoctrineExtension());
  10.         $instance->addExtension(new \Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension($h));
  11.         $instance->addExtension(new \Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension(new \Symfony\Component\DependencyInjection\Argument\ServiceLocator($this->getService, [
App_KernelDevDebugContainer->getTwigService() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 4191)
  1.      *
  2.      * @return \Mycelium\Bundle\SymfonyProductBundle\ProductService
  3.      */
  4.     protected function getProductServiceService()
  5.     {
  6.         $a = ($this->services['twig'] ?? $this->getTwigService());
  7.         if (isset($this->privates['Mycelium\\Bundle\\SymfonyProductBundle\\ProductService'])) {
  8.             return $this->privates['Mycelium\\Bundle\\SymfonyProductBundle\\ProductService'];
  9.         }
App_KernelDevDebugContainer->getProductServiceService() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 927)
  1.      *
  2.      * @return \Mycelium\Bundle\SymfonyOrderBundle\Repository\BasketRepository
  3.      */
  4.     protected function getBasketRepositoryService()
  5.     {
  6.         $a = ($this->privates['Mycelium\\Bundle\\SymfonyProductBundle\\ProductService'] ?? $this->getProductServiceService());
  7.         if (isset($this->services['Mycelium\\Bundle\\SymfonyOrderBundle\\Repository\\BasketRepository'])) {
  8.             return $this->services['Mycelium\\Bundle\\SymfonyOrderBundle\\Repository\\BasketRepository'];
  9.         }
  10.         $b = ($this->services['twig'] ?? $this->getTwigService());
App_KernelDevDebugContainer->getBasketRepositoryService() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 850)
  1.      *
  2.      * @return \Mycelium\Bundle\SymfonyOrderBundle\Manager\BasketManager
  3.      */
  4.     protected function getBasketManagerService()
  5.     {
  6.         $a = ($this->services['Mycelium\\Bundle\\SymfonyOrderBundle\\Repository\\BasketRepository'] ?? $this->getBasketRepositoryService());
  7.         if (isset($this->services['Mycelium\\Bundle\\SymfonyOrderBundle\\Manager\\BasketManager'])) {
  8.             return $this->services['Mycelium\\Bundle\\SymfonyOrderBundle\\Manager\\BasketManager'];
  9.         }
  10.         $b = ($this->privates['Mycelium\\Bundle\\SymfonyProductBundle\\ProductService'] ?? $this->getProductServiceService());
App_KernelDevDebugContainer->getBasketManagerService() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 495)
  1.      *
  2.      * @return \App\Service\ApplicationGlobalsVariablesService
  3.      */
  4.     protected function getApplicationGlobalsVariablesService2Service()
  5.     {
  6.         $this->services['ApplicationGlobalsVariablesService'] = $instance = new \App\Service\ApplicationGlobalsVariablesService(($this->services['Mycelium\\Bundle\\SymfonyOrderBundle\\Manager\\BasketManager'] ?? $this->getBasketManagerService()), ($this->services['App\\Service\\VatService'] ?? $this->getVatServiceService()));
  7.         $instance->setContainer(($this->privates['.service_locator.g9CqTPp'] ?? $this->get_ServiceLocator_G9CqTPpService())->withContext('ApplicationGlobalsVariablesService'$this));
  8.         return $instance;
  9.     }
App_KernelDevDebugContainer->getApplicationGlobalsVariablesService2Service() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 3991)
  1.      *
  2.      * @return \App\EventSubscriber\applicationGlobalsVariablesSubscriber
  3.      */
  4.     protected function getApplicationGlobalsVariablesSubscriberService()
  5.     {
  6.         return $this->privates['App\\EventSubscriber\\applicationGlobalsVariablesSubscriber'] = new \App\EventSubscriber\applicationGlobalsVariablesSubscriber(($this->services['ApplicationGlobalsVariablesService'] ?? $this->getApplicationGlobalsVariablesService2Service()));
  7.     }
  8.     /**
  9.      * Gets the private 'App\Form\FilterFormType' shared autowired service.
  10.      *
App_KernelDevDebugContainer->getApplicationGlobalsVariablesSubscriberService() in /tmp/symfony/var/dev/cache/ContainerKEbeXCN/App_KernelDevDebugContainer.php (line 1627)
  1.         }, => 'onKernelRequest'], 20);
  2.         $instance->addListener('kernel.response', [=> function () {
  3.             return ($this->privates['App\\EventSubscriber\\ResponseSubscriber'] ?? ($this->privates['App\\EventSubscriber\\ResponseSubscriber'] = new \App\EventSubscriber\ResponseSubscriber()));
  4.         }, => 'onKernelResponse'], 0);
  5.         $instance->addListener('kernel.request', [=> function () {
  6.             return ($this->privates['App\\EventSubscriber\\applicationGlobalsVariablesSubscriber'] ?? $this->getApplicationGlobalsVariablesSubscriberService());
  7.         }, => 'onKernelRequest'], 4096);
  8.         $instance->addListener('console.command', [=> function () {
  9.             return ($this->privates['App\\EventSubscriber\\applicationGlobalsVariablesSubscriber'] ?? $this->getApplicationGlobalsVariablesSubscriberService());
  10.         }, => 'onCommandStart'], 4096);
  11.         $instance->addListener('kernel.response', [=> function () {
  1.         $this->sorted[$eventName] = [];
  2.         foreach ($this->listeners[$eventName] as &$listeners) {
  3.             foreach ($listeners as $k => &$listener) {
  4.                 if (\is_array($listener) && isset($listener[0]) && $listener[0] instanceof \Closure && >= \count($listener)) {
  5.                     $listener[0] = $listener[0]();
  6.                     $listener[1] = $listener[1] ?? '__invoke';
  7.                 }
  8.                 $this->sorted[$eventName][] = $listener;
  9.             }
  10.         }
  1.             if (empty($this->listeners[$eventName])) {
  2.                 return [];
  3.             }
  4.             if (!isset($this->sorted[$eventName])) {
  5.                 $this->sortListeners($eventName);
  6.             }
  7.             return $this->sorted[$eventName];
  8.         }
  1.             $this->orphanedEvents[$this->currentRequestHash][] = $eventName;
  2.             return;
  3.         }
  4.         foreach ($this->dispatcher->getListeners($eventName) as $listener) {
  5.             $priority $this->getListenerPriority($eventName$listener);
  6.             $wrappedListener = new WrappedListener($listener instanceof WrappedListener $listener->getWrappedListener() : $listenernull$this->stopwatch$this);
  7.             $this->wrappedListeners[$eventName][] = $wrappedListener;
  8.             $this->dispatcher->removeListener($eventName$listener);
  9.             $this->dispatcher->addListener($eventName$wrappedListener$priority);
  1.         if (null !== $this->logger && $event instanceof StoppableEventInterface && $event->isPropagationStopped()) {
  2.             $this->logger->debug(sprintf('The "%s" event is already stopped. No listeners have been called.'$eventName));
  3.         }
  4.         $this->preProcess($eventName);
  5.         try {
  6.             $this->beforeDispatch($eventName$event);
  7.             try {
  8.                 $e $this->stopwatch->start($eventName'section');
  9.                 try {
  1.     {
  2.         $this->requestStack->push($request);
  3.         // request
  4.         $event = new RequestEvent($this$request$type);
  5.         $this->dispatcher->dispatch($eventKernelEvents::REQUEST);
  6.         if ($event->hasResponse()) {
  7.             return $this->filterResponse($event->getResponse(), $request$type);
  8.         }
  1.     public function handle(Request $requestint $type HttpKernelInterface::MASTER_REQUESTbool $catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.     Request::setTrustedHosts([$trustedHosts]);
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

PDOException

SQLSTATE[HY000] [2002] Connection refused

  1.      * @throws PDOException In case of an error.
  2.      */
  3.     public function __construct($dsn$user null$password null, ?array $options null)
  4.     {
  5.         try {
  6.             parent::__construct($dsn, (string) $user, (string) $password, (array) $options);
  7.             $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [Statement::class, []]);
  8.             $this->setAttribute(PDO::ATTR_ERRMODEPDO::ERRMODE_EXCEPTION);
  9.         } catch (PDOException $exception) {
  10.             throw Exception::new($exception);
  11.         }
  1.      * @throws PDOException In case of an error.
  2.      */
  3.     public function __construct($dsn$user null$password null, ?array $options null