https://kimonosaika.com/shop/_profiler/840746?panel=router

Exceptions

An exception occurred in the driver: SQLSTATE[08004] [1040] Too many connections

  • Exceptions 3
  • Logs
  • Stack Traces 3

Doctrine\DBAL\Exception\ DriverException

  1.             case 1364:
  2.             case 1566:
  3.                 return new NotNullConstraintViolationException($exception$query);
  4.         }
  5.         return new DriverException($exception$query);
  6.     }
  7. }
  1.     private function handleDriverException(
  2.         Driver\Exception $driverException,
  3.         ?Query $query
  4.     ): DriverException {
  5.         $this->exceptionConverter ??= $this->_driver->getExceptionConverter();
  6.         $exception                  $this->exceptionConverter->convert($driverException$query);
  7.         if ($exception instanceof ConnectionLost) {
  8.             $this->close();
  9.         }
in vendor/doctrine/dbal/src/Connection.php -> handleDriverException (line 1767)
  1.     }
  2.     /** @internal */
  3.     final public function convertException(Driver\Exception $e): DriverException
  4.     {
  5.         return $this->handleDriverException($enull);
  6.     }
  7.     /**
  8.      * @param array<int, mixed>|array<string, mixed>                               $params
  9.      * @param array<int, int|string|Type|null>|array<string, int|string|Type|null> $types
in vendor/doctrine/dbal/src/Connection.php -> convertException (line 328)
  1.         }
  2.         try {
  3.             $this->_conn $this->_driver->connect($this->params);
  4.         } catch (Driver\Exception $e) {
  5.             throw $this->convertException($e);
  6.         }
  7.         if ($this->autoCommit === false) {
  8.             $this->beginTransaction();
  9.         }
  1.             'https://github.com/doctrine/dbal/issues/4966',
  2.             'Connection::getWrappedConnection() is deprecated.'
  3.                 ' Use Connection::getNativeConnection() to access the native connection.',
  4.         );
  5.         $this->connect();
  6.         assert($this->_conn !== null);
  7.         return $this->_conn;
  8.     }
in vendor/doctrine/dbal/src/Connection.php -> getWrappedConnection (line 794)
  1.      *
  2.      * @return mixed
  3.      */
  4.     public function quote($value$type ParameterType::STRING)
  5.     {
  6.         $connection $this->getWrappedConnection();
  7.         [$value$bindingType] = $this->getBindingInfo($value$type);
  8.         return $connection->quote($value$bindingType);
  9.     }
  1.     protected function getSelectConditionDiscriminatorValueSQL()
  2.     {
  3.         $values = [];
  4.         if ($this->class->discriminatorValue !== null) { // discriminators can be 0
  5.             $values[] = $this->conn->quote($this->class->discriminatorValue);
  6.         }
  7.         $discrValues array_flip($this->class->discriminatorMap);
  8.         foreach ($this->class->subClasses as $subclassName) {
in vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/SingleTablePersister.php -> getSelectConditionDiscriminatorValueSQL (line 128)
  1.         if ($conditionSql) {
  2.             $conditionSql .= ' AND ';
  3.         }
  4.         return $conditionSql $this->getSelectConditionDiscriminatorValueSQL();
  5.     }
  6.     /**
  7.      * {@inheritdoc}
  8.      */
  1.             $orderBySql $this->getOrderBySQL($orderBy$this->getSQLTableAlias($this->class->name));
  2.         }
  3.         $conditionSql $criteria instanceof Criteria
  4.             $this->getSelectConditionCriteriaSQL($criteria)
  5.             : $this->getSelectConditionSQL($criteria$assoc);
  6.         switch ($lockMode) {
  7.             case LockMode::PESSIMISTIC_READ:
  8.                 $lockSql ' ' $this->platform->getReadLockSQL();
  9.                 break;
  1.      */
  2.     public function load(array $criteria$entity null$assoc null, array $hints = [], $lockMode null$limit null, ?array $orderBy null)
  3.     {
  4.         $this->switchPersisterContext(null$limit);
  5.         $sql              $this->getSelectSQL($criteria$assoc$lockMode$limitnull$orderBy);
  6.         [$params$types] = $this->expandParameters($criteria);
  7.         $stmt             $this->conn->executeQuery($sql$params$types);
  8.         if ($entity !== null) {
  9.             $hints[Query::HINT_REFRESH]        = true;
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function loadById(array $identifier$entity null)
  5.     {
  6.         return $this->load($identifier$entity);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.             case $lockMode === LockMode::PESSIMISTIC_READ:
  2.             case $lockMode === LockMode::PESSIMISTIC_WRITE:
  3.                 return $persister->load($sortedIdnullnull, [], $lockMode);
  4.             default:
  5.                 return $persister->loadById($sortedId);
  6.         }
  7.     }
  8.     /**
  9.      * {@inheritDoc}
  1.     public function find($className$id$lockMode null$lockVersion null)
  2.     {
  3.         $this->initializer05209 && ($this->initializer05209->__invoke($valueHoldereebf2$this'find', array('className' => $className'id' => $id'lockMode' => $lockMode'lockVersion' => $lockVersion), $this->initializer05209) || 1) && $this->valueHoldereebf2 $valueHoldereebf2;
  4.         return $this->valueHoldereebf2->find($className$id$lockMode$lockVersion);
  5.     }
  6.     public function getReference($entityName$id)
  7.     {
  8.         $this->initializer05209 && ($this->initializer05209->__invoke($valueHoldereebf2$this'getReference', array('entityName' => $entityName'id' => $id), $this->initializer05209) || 1) && $this->valueHoldereebf2 $valueHoldereebf2;
  1.      * @return object|null The entity instance or NULL if the entity can not be found.
  2.      * @psalm-return ?T
  3.      */
  4.     public function find($id$lockMode null$lockVersion null)
  5.     {
  6.         return $this->_em->find($this->_entityName$id$lockMode$lockVersion);
  7.     }
  8.     /**
  9.      * Finds all entities in the repository.
  10.      *
EntityRepository->find(1) in src/Eccube/Repository/BaseInfoRepository.php (line 44)
  1.      *
  2.      * @return BaseInfo
  3.      */
  4.     public function get($id 1)
  5.     {
  6.         $BaseInfo $this->find($id);
  7.         if (null === $BaseInfo) {
  8.             throw new \Exception('BaseInfo not found. id = '.$id);
  9.         }
BaseInfoRepository->get() in src/Eccube/EventListener/TwigInitializeListener.php (line 155)
  1.     {
  2.         if ($this->initialized) {
  3.             return;
  4.         }
  5.         $this->twig->addGlobal('BaseInfo'$this->baseInfoRepository->get());
  6.         if ($this->requestContext->isAdmin()) {
  7.             $this->setAdminGlobals($event);
  8.         } else {
  9.             $this->setFrontVariables($event);
  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.      */
  2.     private function handleRaw(Request $requestint $type self::MAIN_REQUEST): Response
  3.     {
  4.         // request
  5.         $event = new RequestEvent($this$request$type);
  6.         $this->dispatcher->dispatch($eventKernelEvents::REQUEST);
  7.         if ($event->hasResponse()) {
  8.             return $this->filterResponse($event->getResponse(), $request$type);
  9.         }
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  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.     }
Kernel->handle(object(Request)) in index.php/ (line 83)
  1.         }
  2.     }
  3. }
  4. $kernel = new Kernel($env$debug);
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

Doctrine\DBAL\Driver\PDO\ Exception

SQLSTATE[08004] [1040] Too many connections

  1.         } else {
  2.             $code     $exception->getCode();
  3.             $sqlState null;
  4.         }
  5.         return new self($exception->getMessage(), $sqlState$code$exception);
  6.     }
  7. }
  1.                 $params['user'] ?? '',
  2.                 $params['password'] ?? '',
  3.                 $driverOptions,
  4.             );
  5.         } catch (PDOException $exception) {
  6.             throw Exception::new($exception);
  7.         }
  8.         return new Connection($pdo);
  9.     }
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function connect(array $params)
  5.     {
  6.         return $this->wrappedDriver->connect($params);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.     public function connect(array $params)
  2.     {
  3.         $this->logger->info('Connecting with parameters {params}', ['params' => $this->maskPassword($params)]);
  4.         return new Connection(
  5.             parent::connect($params),
  6.             $this->logger,
  7.         );
  8.     }
  9.     /**
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function connect(array $params)
  5.     {
  6.         return $this->wrappedDriver->connect($params);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.     }
  2.     public function connect(array $params): Connection
  3.     {
  4.         return new Connection(
  5.             parent::connect($params),
  6.             $this->debugDataHolder,
  7.             $this->stopwatch,
  8.             $this->connectionName
  9.         );
  10.     }
  1.         if ($this->_conn !== null) {
  2.             return false;
  3.         }
  4.         try {
  5.             $this->_conn $this->_driver->connect($this->params);
  6.         } catch (Driver\Exception $e) {
  7.             throw $this->convertException($e);
  8.         }
  9.         if ($this->autoCommit === false) {
  1.             'https://github.com/doctrine/dbal/issues/4966',
  2.             'Connection::getWrappedConnection() is deprecated.'
  3.                 ' Use Connection::getNativeConnection() to access the native connection.',
  4.         );
  5.         $this->connect();
  6.         assert($this->_conn !== null);
  7.         return $this->_conn;
  8.     }
in vendor/doctrine/dbal/src/Connection.php -> getWrappedConnection (line 794)
  1.      *
  2.      * @return mixed
  3.      */
  4.     public function quote($value$type ParameterType::STRING)
  5.     {
  6.         $connection $this->getWrappedConnection();
  7.         [$value$bindingType] = $this->getBindingInfo($value$type);
  8.         return $connection->quote($value$bindingType);
  9.     }
  1.     protected function getSelectConditionDiscriminatorValueSQL()
  2.     {
  3.         $values = [];
  4.         if ($this->class->discriminatorValue !== null) { // discriminators can be 0
  5.             $values[] = $this->conn->quote($this->class->discriminatorValue);
  6.         }
  7.         $discrValues array_flip($this->class->discriminatorMap);
  8.         foreach ($this->class->subClasses as $subclassName) {
in vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/SingleTablePersister.php -> getSelectConditionDiscriminatorValueSQL (line 128)
  1.         if ($conditionSql) {
  2.             $conditionSql .= ' AND ';
  3.         }
  4.         return $conditionSql $this->getSelectConditionDiscriminatorValueSQL();
  5.     }
  6.     /**
  7.      * {@inheritdoc}
  8.      */
  1.             $orderBySql $this->getOrderBySQL($orderBy$this->getSQLTableAlias($this->class->name));
  2.         }
  3.         $conditionSql $criteria instanceof Criteria
  4.             $this->getSelectConditionCriteriaSQL($criteria)
  5.             : $this->getSelectConditionSQL($criteria$assoc);
  6.         switch ($lockMode) {
  7.             case LockMode::PESSIMISTIC_READ:
  8.                 $lockSql ' ' $this->platform->getReadLockSQL();
  9.                 break;
  1.      */
  2.     public function load(array $criteria$entity null$assoc null, array $hints = [], $lockMode null$limit null, ?array $orderBy null)
  3.     {
  4.         $this->switchPersisterContext(null$limit);
  5.         $sql              $this->getSelectSQL($criteria$assoc$lockMode$limitnull$orderBy);
  6.         [$params$types] = $this->expandParameters($criteria);
  7.         $stmt             $this->conn->executeQuery($sql$params$types);
  8.         if ($entity !== null) {
  9.             $hints[Query::HINT_REFRESH]        = true;
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function loadById(array $identifier$entity null)
  5.     {
  6.         return $this->load($identifier$entity);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.             case $lockMode === LockMode::PESSIMISTIC_READ:
  2.             case $lockMode === LockMode::PESSIMISTIC_WRITE:
  3.                 return $persister->load($sortedIdnullnull, [], $lockMode);
  4.             default:
  5.                 return $persister->loadById($sortedId);
  6.         }
  7.     }
  8.     /**
  9.      * {@inheritDoc}
  1.     public function find($className$id$lockMode null$lockVersion null)
  2.     {
  3.         $this->initializer05209 && ($this->initializer05209->__invoke($valueHoldereebf2$this'find', array('className' => $className'id' => $id'lockMode' => $lockMode'lockVersion' => $lockVersion), $this->initializer05209) || 1) && $this->valueHoldereebf2 $valueHoldereebf2;
  4.         return $this->valueHoldereebf2->find($className$id$lockMode$lockVersion);
  5.     }
  6.     public function getReference($entityName$id)
  7.     {
  8.         $this->initializer05209 && ($this->initializer05209->__invoke($valueHoldereebf2$this'getReference', array('entityName' => $entityName'id' => $id), $this->initializer05209) || 1) && $this->valueHoldereebf2 $valueHoldereebf2;
  1.      * @return object|null The entity instance or NULL if the entity can not be found.
  2.      * @psalm-return ?T
  3.      */
  4.     public function find($id$lockMode null$lockVersion null)
  5.     {
  6.         return $this->_em->find($this->_entityName$id$lockMode$lockVersion);
  7.     }
  8.     /**
  9.      * Finds all entities in the repository.
  10.      *
EntityRepository->find(1) in src/Eccube/Repository/BaseInfoRepository.php (line 44)
  1.      *
  2.      * @return BaseInfo
  3.      */
  4.     public function get($id 1)
  5.     {
  6.         $BaseInfo $this->find($id);
  7.         if (null === $BaseInfo) {
  8.             throw new \Exception('BaseInfo not found. id = '.$id);
  9.         }
BaseInfoRepository->get() in src/Eccube/EventListener/TwigInitializeListener.php (line 155)
  1.     {
  2.         if ($this->initialized) {
  3.             return;
  4.         }
  5.         $this->twig->addGlobal('BaseInfo'$this->baseInfoRepository->get());
  6.         if ($this->requestContext->isAdmin()) {
  7.             $this->setAdminGlobals($event);
  8.         } else {
  9.             $this->setFrontVariables($event);
  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.      */
  2.     private function handleRaw(Request $requestint $type self::MAIN_REQUEST): Response
  3.     {
  4.         // request
  5.         $event = new RequestEvent($this$request$type);
  6.         $this->dispatcher->dispatch($eventKernelEvents::REQUEST);
  7.         if ($event->hasResponse()) {
  8.             return $this->filterResponse($event->getResponse(), $request$type);
  9.         }
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  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.     }
Kernel->handle(object(Request)) in index.php/ (line 83)
  1.         }
  2.     }
  3. }
  4. $kernel = new Kernel($env$debug);
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

PDOException

SQLSTATE[08004] [1040] Too many connections

  1.             $driverOptions[PDO::ATTR_PERSISTENT] = true;
  2.         }
  3.         try {
  4.             $pdo = new PDO(
  5.                 $this->constructPdoDsn($params),
  6.                 $params['user'] ?? '',
  7.                 $params['password'] ?? '',
  8.                 $driverOptions,
  9.             );
  10.         } catch (PDOException $exception) {
  1.             $driverOptions[PDO::ATTR_PERSISTENT] = true;
  2.         }
  3.         try {
  4.             $pdo = new PDO(
  5.                 $this->constructPdoDsn($params),
  6.                 $params['user'] ?? '',
  7.                 $params['password'] ?? '',
  8.                 $driverOptions,
  9.             );
  10.         } catch (PDOException $exception) {
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function connect(array $params)
  5.     {
  6.         return $this->wrappedDriver->connect($params);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.     public function connect(array $params)
  2.     {
  3.         $this->logger->info('Connecting with parameters {params}', ['params' => $this->maskPassword($params)]);
  4.         return new Connection(
  5.             parent::connect($params),
  6.             $this->logger,
  7.         );
  8.     }
  9.     /**
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function connect(array $params)
  5.     {
  6.         return $this->wrappedDriver->connect($params);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.     }
  2.     public function connect(array $params): Connection
  3.     {
  4.         return new Connection(
  5.             parent::connect($params),
  6.             $this->debugDataHolder,
  7.             $this->stopwatch,
  8.             $this->connectionName
  9.         );
  10.     }
  1.         if ($this->_conn !== null) {
  2.             return false;
  3.         }
  4.         try {
  5.             $this->_conn $this->_driver->connect($this->params);
  6.         } catch (Driver\Exception $e) {
  7.             throw $this->convertException($e);
  8.         }
  9.         if ($this->autoCommit === false) {
  1.             'https://github.com/doctrine/dbal/issues/4966',
  2.             'Connection::getWrappedConnection() is deprecated.'
  3.                 ' Use Connection::getNativeConnection() to access the native connection.',
  4.         );
  5.         $this->connect();
  6.         assert($this->_conn !== null);
  7.         return $this->_conn;
  8.     }
in vendor/doctrine/dbal/src/Connection.php -> getWrappedConnection (line 794)
  1.      *
  2.      * @return mixed
  3.      */
  4.     public function quote($value$type ParameterType::STRING)
  5.     {
  6.         $connection $this->getWrappedConnection();
  7.         [$value$bindingType] = $this->getBindingInfo($value$type);
  8.         return $connection->quote($value$bindingType);
  9.     }
  1.     protected function getSelectConditionDiscriminatorValueSQL()
  2.     {
  3.         $values = [];
  4.         if ($this->class->discriminatorValue !== null) { // discriminators can be 0
  5.             $values[] = $this->conn->quote($this->class->discriminatorValue);
  6.         }
  7.         $discrValues array_flip($this->class->discriminatorMap);
  8.         foreach ($this->class->subClasses as $subclassName) {
in vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/SingleTablePersister.php -> getSelectConditionDiscriminatorValueSQL (line 128)
  1.         if ($conditionSql) {
  2.             $conditionSql .= ' AND ';
  3.         }
  4.         return $conditionSql $this->getSelectConditionDiscriminatorValueSQL();
  5.     }
  6.     /**
  7.      * {@inheritdoc}
  8.      */
  1.             $orderBySql $this->getOrderBySQL($orderBy$this->getSQLTableAlias($this->class->name));
  2.         }
  3.         $conditionSql $criteria instanceof Criteria
  4.             $this->getSelectConditionCriteriaSQL($criteria)
  5.             : $this->getSelectConditionSQL($criteria$assoc);
  6.         switch ($lockMode) {
  7.             case LockMode::PESSIMISTIC_READ:
  8.                 $lockSql ' ' $this->platform->getReadLockSQL();
  9.                 break;
  1.      */
  2.     public function load(array $criteria$entity null$assoc null, array $hints = [], $lockMode null$limit null, ?array $orderBy null)
  3.     {
  4.         $this->switchPersisterContext(null$limit);
  5.         $sql              $this->getSelectSQL($criteria$assoc$lockMode$limitnull$orderBy);
  6.         [$params$types] = $this->expandParameters($criteria);
  7.         $stmt             $this->conn->executeQuery($sql$params$types);
  8.         if ($entity !== null) {
  9.             $hints[Query::HINT_REFRESH]        = true;
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function loadById(array $identifier$entity null)
  5.     {
  6.         return $this->load($identifier$entity);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.             case $lockMode === LockMode::PESSIMISTIC_READ:
  2.             case $lockMode === LockMode::PESSIMISTIC_WRITE:
  3.                 return $persister->load($sortedIdnullnull, [], $lockMode);
  4.             default:
  5.                 return $persister->loadById($sortedId);
  6.         }
  7.     }
  8.     /**
  9.      * {@inheritDoc}
  1.     public function find($className$id$lockMode null$lockVersion null)
  2.     {
  3.         $this->initializer05209 && ($this->initializer05209->__invoke($valueHoldereebf2$this'find', array('className' => $className'id' => $id'lockMode' => $lockMode'lockVersion' => $lockVersion), $this->initializer05209) || 1) && $this->valueHoldereebf2 $valueHoldereebf2;
  4.         return $this->valueHoldereebf2->find($className$id$lockMode$lockVersion);
  5.     }
  6.     public function getReference($entityName$id)
  7.     {
  8.         $this->initializer05209 && ($this->initializer05209->__invoke($valueHoldereebf2$this'getReference', array('entityName' => $entityName'id' => $id), $this->initializer05209) || 1) && $this->valueHoldereebf2 $valueHoldereebf2;
  1.      * @return object|null The entity instance or NULL if the entity can not be found.
  2.      * @psalm-return ?T
  3.      */
  4.     public function find($id$lockMode null$lockVersion null)
  5.     {
  6.         return $this->_em->find($this->_entityName$id$lockMode$lockVersion);
  7.     }
  8.     /**
  9.      * Finds all entities in the repository.
  10.      *
EntityRepository->find(1) in src/Eccube/Repository/BaseInfoRepository.php (line 44)
  1.      *
  2.      * @return BaseInfo
  3.      */
  4.     public function get($id 1)
  5.     {
  6.         $BaseInfo $this->find($id);
  7.         if (null === $BaseInfo) {
  8.             throw new \Exception('BaseInfo not found. id = '.$id);
  9.         }
BaseInfoRepository->get() in src/Eccube/EventListener/TwigInitializeListener.php (line 155)
  1.     {
  2.         if ($this->initialized) {
  3.             return;
  4.         }
  5.         $this->twig->addGlobal('BaseInfo'$this->baseInfoRepository->get());
  6.         if ($this->requestContext->isAdmin()) {
  7.             $this->setAdminGlobals($event);
  8.         } else {
  9.             $this->setFrontVariables($event);
  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.      */
  2.     private function handleRaw(Request $requestint $type self::MAIN_REQUEST): Response
  3.     {
  4.         // request
  5.         $event = new RequestEvent($this$request$type);
  6.         $this->dispatcher->dispatch($eventKernelEvents::REQUEST);
  7.         if ($event->hasResponse()) {
  8.             return $this->filterResponse($event->getResponse(), $request$type);
  9.         }
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  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.     }
Kernel->handle(object(Request)) in index.php/ (line 83)
  1.         }
  2.     }
  3. }
  4. $kernel = new Kernel($env$debug);
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);