Symfony Exception

An exception occurred in the driver: could not find driver

Exceptions 6

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.         }
  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
  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.         }
  2.         // If not connected, we need to connect now to determine the platform version.
  3.         if ($this->_conn === null) {
  4.             try {
  5.                 $this->connect();
  6.             } catch (Exception $originalException) {
  7.                 if (! isset($this->params['dbname'])) {
  8.                     throw $originalException;
  9.                 }
  1.      *
  2.      * @throws Exception If an invalid platform was specified for this connection.
  3.      */
  4.     private function detectDatabasePlatform(): AbstractPlatform
  5.     {
  6.         $version $this->getDatabasePlatformVersion();
  7.         if ($version !== null) {
  8.             assert($this->_driver instanceof VersionAwarePlatformDriver);
  9.             return $this->_driver->createDatabasePlatformForVersion($version);
  1.      * @throws Exception
  2.      */
  3.     public function getDatabasePlatform()
  4.     {
  5.         if ($this->platform === null) {
  6.             $this->platform $this->detectDatabasePlatform();
  7.             $this->platform->setEventManager($this->_eventManager);
  8.             $this->platform->setDisableTypeComments($this->_config->getDisableTypeComments());
  9.         }
  10.         return $this->platform;
  1.     }
  2.     private function getTargetPlatform(): Platforms\AbstractPlatform
  3.     {
  4.         if (! $this->targetPlatform) {
  5.             $this->targetPlatform $this->em->getConnection()->getDatabasePlatform();
  6.         }
  7.         return $this->targetPlatform;
  8.     }
  9. }
  1.      */
  2.     private function completeIdGeneratorMapping(ClassMetadataInfo $class): void
  3.     {
  4.         $idGenType $class->generatorType;
  5.         if ($idGenType === ClassMetadata::GENERATOR_TYPE_AUTO) {
  6.             $class->setIdGeneratorType($this->determineIdGeneratorStrategy($this->getTargetPlatform()));
  7.         }
  8.         // Create & assign an appropriate ID generator instance
  9.         switch ($class->generatorType) {
  10.             case ClassMetadata::GENERATOR_TYPE_IDENTITY:
  1.         // However this is only true if the hierarchy of parents contains the root entity,
  2.         // if it consists of mapped superclasses these don't necessarily include the id field.
  3.         if ($parent && $rootEntityFound) {
  4.             $this->inheritIdGeneratorMapping($class$parent);
  5.         } else {
  6.             $this->completeIdGeneratorMapping($class);
  7.         }
  8.         if (! $class->isMappedSuperclass) {
  9.             if ($rootEntityFound && $class->isInheritanceTypeNone()) {
  10.                 Deprecation::trigger(
  1.     /**
  2.      * {@inheritDoc}
  3.      */
  4.     protected function doLoadMetadata($class$parent$rootEntityFound, array $nonSuperclassParents): void
  5.     {
  6.         parent::doLoadMetadata($class$parent$rootEntityFound$nonSuperclassParents);
  7.         $customGeneratorDefinition $class->customGeneratorDefinition;
  8.         if (! isset($customGeneratorDefinition['instance'])) {
  9.             return;
  1.             }
  2.             $class $this->newClassMetadataInstance($className);
  3.             $this->initializeReflection($class$reflService);
  4.             $this->doLoadMetadata($class$parent$rootEntityFound$visited);
  5.             $this->loadedMetadata[$className] = $class;
  6.             $parent $class;
  1.                     /** @phpstan-var CMTemplate $cached */
  2.                     $this->loadedMetadata[$realClassName] = $cached;
  3.                     $this->wakeupReflection($cached$this->getReflectionService());
  4.                 } else {
  5.                     $loadedMetadata $this->loadMetadata($realClassName);
  6.                     $classNames     array_combine(
  7.                         array_map([$this'getCacheKey'], $loadedMetadata),
  8.                         $loadedMetadata
  9.                     );
  1.      *
  2.      * {@inheritDoc}
  3.      */
  4.     public function getClassMetadata($className)
  5.     {
  6.         return $this->metadataFactory->getMetadataFor($className);
  7.     }
  8.     /**
  9.      * {@inheritDoc}
  10.      */
  1.      *
  2.      * @template T of object
  3.      */
  4.     private function doGetRepository(EntityManagerInterface $entityManagerstring $entityNamebool $strictTypeCheck): ObjectRepository
  5.     {
  6.         $metadata            $entityManager->getClassMetadata($entityName);
  7.         $repositoryServiceId $metadata->customRepositoryClassName;
  8.         $customRepositoryName $metadata->customRepositoryClassName;
  9.         if ($customRepositoryName !== null) {
  10.             // fetch from the container
  1.     trait RepositoryFactoryCompatibility
  2.     {
  3.         /** {@inheritDoc} */
  4.         public function getRepository(EntityManagerInterface $entityManager$entityName): ObjectRepository
  5.         {
  6.             return $this->doGetRepository($entityManager$entityNamefalse);
  7.         }
  8.     }
  9. }
  1.                     __METHOD__
  2.                 ));
  3.             }
  4.         }
  5.         $repository $this->repositoryFactory->getRepository($this$entityName);
  6.         if (! $repository instanceof EntityRepository) {
  7.             Deprecation::trigger(
  8.                 'doctrine/orm',
  9.                 'https://github.com/doctrine/orm/pull/9533',
  10.                 'Not returning an instance of %s from %s::getRepository() is deprecated and will cause a TypeError on 3.0.',
  1.     public function getRepository($entityName)
  2.     {
  3.         $this->initializera9f5f && ($this->initializera9f5f->__invoke($valueHolder5d3a2$this'getRepository', array('entityName' => $entityName), $this->initializera9f5f) || 1) && $this->valueHolder5d3a2 $valueHolder5d3a2;
  4.         return $this->valueHolder5d3a2->getRepository($entityName);
  5.     }
  6.     public function contains($entity)
  7.     {
  8.         $this->initializera9f5f && ($this->initializera9f5f->__invoke($valueHolder5d3a2$this'contains', array('entity' => $entity), $this->initializera9f5f) || 1) && $this->valueHolder5d3a2 $valueHolder5d3a2;
EntityManager_9a5be93->getRepository('App\\Entity\\User') in /home/dombusin.com/public_html/src/Service/Discount/UserDiscount.php (line 34)
  1.         $this->em $em;
  2.         $this->Auth $Auth;
  3.         $this->Auth->setUser($security->getUser());
  4.         $this->ModelOrder $ModelOrder;
  5.         $this->Users $this->em->getRepository(User::class);
  6.         $this->Discounts $this->em->getRepository(Discount::class);
  7.     }
  8.     /**
  9.      * Если пользователь не залогинен возаращает 0. 
  1.         if (isset($this->privates['App\\Service\\Discount\\UserDiscount'])) {
  2.             return $this->privates['App\\Service\\Discount\\UserDiscount'];
  3.         }
  4.         return $this->privates['App\\Service\\Discount\\UserDiscount'] = new \App\Service\Discount\UserDiscount($a$b$c$d);
  5.     }
  6.     /**
  7.      * Gets the private 'App\Service\Filter\Cats' shared autowired service.
  8.      *
  1.      *
  2.      * @return \App\Model\Prod
  3.      */
  4.     protected function getProdService()
  5.     {
  6.         $a = ($this->privates['App\\Service\\Discount\\UserDiscount'] ?? $this->getUserDiscountService());
  7.         if (isset($this->privates['App\\Model\\Prod'])) {
  8.             return $this->privates['App\\Model\\Prod'];
  9.         }
  1.      *
  2.      * @return \App\Repository\ProdRepository
  3.      */
  4.     protected function getProdRepositoryService()
  5.     {
  6.         $a = ($this->privates['App\\Model\\Prod'] ?? $this->getProdService());
  7.         if (isset($this->privates['App\\Repository\\ProdRepository'])) {
  8.             return $this->privates['App\\Repository\\ProdRepository'];
  9.         }
  1.      *
  2.      * @return \App\Model\Wishlist
  3.      */
  4.     protected function getWishlistService()
  5.     {
  6.         $a = ($this->privates['App\\Repository\\ProdRepository'] ?? $this->getProdRepositoryService());
  7.         if (isset($this->privates['App\\Model\\Wishlist'])) {
  8.             return $this->privates['App\\Model\\Wishlist'];
  9.         }
  10.         $b = ($this->privates['App\\Model\\Prod'] ?? $this->getProdService());
  1.         if (isset($this->privates['App\\EventSubscriber\\Redirect'])) {
  2.             return $this->privates['App\\EventSubscriber\\Redirect'];
  3.         }
  4.         return $this->privates['App\\EventSubscriber\\Redirect'] = new \App\EventSubscriber\Redirect(($this->privates['App\\DTO\\AppDTO'] ?? ($this->privates['App\\DTO\\AppDTO'] = new \App\DTO\AppDTO())), $a$b, ($this->privates['.app_cache.taggable'] ?? $this->get_AppCache_TaggableService()), $c, ($this->privates['App\\Env'] ?? ($this->privates['App\\Env'] = new \App\Env(($this->services['kernel'] ?? $this->get('kernel'1))))), ($this->privates['App\\Func'] ?? ($this->privates['App\\Func'] = new \App\Func())), ($this->privates['App\\Model\\Wishlist'] ?? $this->getWishlistService()), $d, ($this->privates['App\\Repository\\RedirectRepository'] ?? $this->getRedirectRepositoryService()));
  5.     }
  6.     /**
  7.      * Gets the private 'App\EventSubscriber\RedirectLocale' shared autowired service.
  8.      *
  1.         }, => 'onLoginSuccessEvent'], 0);
  2.         $instance->addListener('app.order.payed', [=> function () {
  3.             return ($this->privates['App\\EventSubscriber\\PrzlelewyOrderPayed'] ?? $this->load('getPrzlelewyOrderPayedService'));
  4.         }, => 'onOrderPayed'], 0);
  5.         $instance->addListener('kernel.request', [=> function () {
  6.             return ($this->privates['App\\EventSubscriber\\Redirect'] ?? $this->getRedirectService());
  7.         }, => 'onRequest'], 0);
  8.         $instance->addListener('kernel.request', [=> function () {
  9.             return ($this->privates['App\\EventSubscriber\\RedirectLocale'] ?? $this->getRedirectLocaleService());
  10.         }, => 'onKernelController'], 0);
  11.         $instance->addListener('app.order.maked', [=> function () {
  1.         }
  2.         foreach ($this->listeners[$eventName] as $priority => &$listeners) {
  3.             foreach ($listeners as $k => &$v) {
  4.                 if ($v !== $listener && \is_array($v) && isset($v[0]) && $v[0] instanceof \Closure && >= \count($v)) {
  5.                     $v[0] = $v[0]();
  6.                     $v[1] = $v[1] ?? '__invoke';
  7.                 }
  8.                 if ($v === $listener || ($listener instanceof \Closure && $v == $listener)) {
  9.                     unset($listeners[$k], $this->sorted[$eventName], $this->optimized[$eventName]);
  10.                 }
  1.         foreach ($this->dispatcher->getListeners($eventName) as $listener) {
  2.             $priority $this->getListenerPriority($eventName$listener);
  3.             $wrappedListener = new WrappedListener($listener instanceof WrappedListener $listener->getWrappedListener() : $listenernull$this->stopwatch$this);
  4.             $this->wrappedListeners[$eventName][] = $wrappedListener;
  5.             $this->dispatcher->removeListener($eventName$listener);
  6.             $this->dispatcher->addListener($eventName$wrappedListener$priority);
  7.             $this->callStack->attach($wrappedListener, [$eventName$this->currentRequestHash]);
  8.         }
  9.     }
  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.     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.         $throwable $event->getThrowable();
  2.         $request $this->duplicateRequest($throwable$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.         } finally {
  6.             $this->requestStack->pop();
  7.         }
  8.     }
  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.         if (!IpUtils::checkIp('127.0.0.1'$trustedProxies)) {
  2.             Request::setTrustedProxies(array_merge($trustedProxies, ['127.0.0.1']), Request::getTrustedHeaderSet());
  3.         }
  4.         try {
  5.             return $kernel->handle($request$type$catch);
  6.         } finally {
  7.             // restore global state
  8.             Request::setTrustedProxies($trustedProxies$trustedHeaderSet);
  9.         }
  10.     }
  1.         if ($this->surrogate) {
  2.             $this->surrogate->addSurrogateCapability($request);
  3.         }
  4.         // always a "master" request (as the real master request can be in cache)
  5.         $response SubRequestHandler::handle($this->kernel$requestHttpKernelInterface::MAIN_REQUEST$catch);
  6.         /*
  7.          * Support stale-if-error given on Responses or as a config option.
  8.          * RFC 7234 summarizes in Section 4.2.4 (but also mentions with the individual
  9.          * Cache-Control directives) that
  1.     protected function forward(Request $requestbool $catch falseResponse $entry null): Response
  2.     {
  3.         $this->getKernel()->boot();
  4.         $this->getKernel()->getContainer()->set('cache'$this);
  5.         return parent::forward($request$catch$entry);
  6.     }
  7.     /**
  8.      * Returns an array of options to customize the Cache configuration.
  9.      */
  1.         // avoid that the backend sends no content
  2.         $subRequest->headers->remove('If-Modified-Since');
  3.         $subRequest->headers->remove('If-None-Match');
  4.         $response $this->forward($subRequest$catch);
  5.         if ($response->isCacheable()) {
  6.             $this->store($request$response);
  7.         }
  1.         }
  2.         if (null === $entry) {
  3.             $this->record($request'miss');
  4.             return $this->fetch($request$catch);
  5.         }
  6.         if (!$this->isFreshEnough($request$entry)) {
  7.             $this->record($request'stale');
  1.                 reload the cache by fetching a fresh response and caching it (if possible).
  2.             */
  3.             $this->record($request'reload');
  4.             $response $this->fetch($request$catch);
  5.         } else {
  6.             $response $this->lookup($request$catch);
  7.         }
  8.         $this->restoreResponseBody($request$response);
  9.         if (HttpKernelInterface::MAIN_REQUEST === $type) {
  1.     {
  2.         if (!$this->booted) {
  3.             $container $this->container ?? $this->preBoot();
  4.             if ($container->has('http_cache')) {
  5.                 return $container->get('http_cache')->handle($request$type$catch);
  6.             }
  7.         }
  8.         $this->boot();
  9.         ++$this->requestStackSize;
  1.         $this->request $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request$response);
  9.         }
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/home/dombusin.com/public_html/vendor/autoload_runtime.php') in /home/dombusin.com/public_html/public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {    
  5.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

Doctrine\DBAL\Driver\PDO\ Exception

could not find driver

  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.     public function connect(
  3.         #[SensitiveParameter]
  4.         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.         }
  2.         // If not connected, we need to connect now to determine the platform version.
  3.         if ($this->_conn === null) {
  4.             try {
  5.                 $this->connect();
  6.             } catch (Exception $originalException) {
  7.                 if (! isset($this->params['dbname'])) {
  8.                     throw $originalException;
  9.                 }
  1.      *
  2.      * @throws Exception If an invalid platform was specified for this connection.
  3.      */
  4.     private function detectDatabasePlatform(): AbstractPlatform
  5.     {
  6.         $version $this->getDatabasePlatformVersion();
  7.         if ($version !== null) {
  8.             assert($this->_driver instanceof VersionAwarePlatformDriver);
  9.             return $this->_driver->createDatabasePlatformForVersion($version);
  1.      * @throws Exception
  2.      */
  3.     public function getDatabasePlatform()
  4.     {
  5.         if ($this->platform === null) {
  6.             $this->platform $this->detectDatabasePlatform();
  7.             $this->platform->setEventManager($this->_eventManager);
  8.             $this->platform->setDisableTypeComments($this->_config->getDisableTypeComments());
  9.         }
  10.         return $this->platform;
  1.     }
  2.     private function getTargetPlatform(): Platforms\AbstractPlatform
  3.     {
  4.         if (! $this->targetPlatform) {
  5.             $this->targetPlatform $this->em->getConnection()->getDatabasePlatform();
  6.         }
  7.         return $this->targetPlatform;
  8.     }
  9. }
  1.      */
  2.     private function completeIdGeneratorMapping(ClassMetadataInfo $class): void
  3.     {
  4.         $idGenType $class->generatorType;
  5.         if ($idGenType === ClassMetadata::GENERATOR_TYPE_AUTO) {
  6.             $class->setIdGeneratorType($this->determineIdGeneratorStrategy($this->getTargetPlatform()));
  7.         }
  8.         // Create & assign an appropriate ID generator instance
  9.         switch ($class->generatorType) {
  10.             case ClassMetadata::GENERATOR_TYPE_IDENTITY:
  1.         // However this is only true if the hierarchy of parents contains the root entity,
  2.         // if it consists of mapped superclasses these don't necessarily include the id field.
  3.         if ($parent && $rootEntityFound) {
  4.             $this->inheritIdGeneratorMapping($class$parent);
  5.         } else {
  6.             $this->completeIdGeneratorMapping($class);
  7.         }
  8.         if (! $class->isMappedSuperclass) {
  9.             if ($rootEntityFound && $class->isInheritanceTypeNone()) {
  10.                 Deprecation::trigger(
  1.     /**
  2.      * {@inheritDoc}
  3.      */
  4.     protected function doLoadMetadata($class$parent$rootEntityFound, array $nonSuperclassParents): void
  5.     {
  6.         parent::doLoadMetadata($class$parent$rootEntityFound$nonSuperclassParents);
  7.         $customGeneratorDefinition $class->customGeneratorDefinition;
  8.         if (! isset($customGeneratorDefinition['instance'])) {
  9.             return;
  1.             }
  2.             $class $this->newClassMetadataInstance($className);
  3.             $this->initializeReflection($class$reflService);
  4.             $this->doLoadMetadata($class$parent$rootEntityFound$visited);
  5.             $this->loadedMetadata[$className] = $class;
  6.             $parent $class;
  1.                     /** @phpstan-var CMTemplate $cached */
  2.                     $this->loadedMetadata[$realClassName] = $cached;
  3.                     $this->wakeupReflection($cached$this->getReflectionService());
  4.                 } else {
  5.                     $loadedMetadata $this->loadMetadata($realClassName);
  6.                     $classNames     array_combine(
  7.                         array_map([$this'getCacheKey'], $loadedMetadata),
  8.                         $loadedMetadata
  9.                     );
  1.      *
  2.      * {@inheritDoc}
  3.      */
  4.     public function getClassMetadata($className)
  5.     {
  6.         return $this->metadataFactory->getMetadataFor($className);
  7.     }
  8.     /**
  9.      * {@inheritDoc}
  10.      */
  1.      *
  2.      * @template T of object
  3.      */
  4.     private function doGetRepository(EntityManagerInterface $entityManagerstring $entityNamebool $strictTypeCheck): ObjectRepository
  5.     {
  6.         $metadata            $entityManager->getClassMetadata($entityName);
  7.         $repositoryServiceId $metadata->customRepositoryClassName;
  8.         $customRepositoryName $metadata->customRepositoryClassName;
  9.         if ($customRepositoryName !== null) {
  10.             // fetch from the container
  1.     trait RepositoryFactoryCompatibility
  2.     {
  3.         /** {@inheritDoc} */
  4.         public function getRepository(EntityManagerInterface $entityManager$entityName): ObjectRepository
  5.         {
  6.             return $this->doGetRepository($entityManager$entityNamefalse);
  7.         }
  8.     }
  9. }
  1.                     __METHOD__
  2.                 ));
  3.             }
  4.         }
  5.         $repository $this->repositoryFactory->getRepository($this$entityName);
  6.         if (! $repository instanceof EntityRepository) {
  7.             Deprecation::trigger(
  8.                 'doctrine/orm',
  9.                 'https://github.com/doctrine/orm/pull/9533',
  10.                 'Not returning an instance of %s from %s::getRepository() is deprecated and will cause a TypeError on 3.0.',
  1.     public function getRepository($entityName)
  2.     {
  3.         $this->initializera9f5f && ($this->initializera9f5f->__invoke($valueHolder5d3a2$this'getRepository', array('entityName' => $entityName), $this->initializera9f5f) || 1) && $this->valueHolder5d3a2 $valueHolder5d3a2;
  4.         return $this->valueHolder5d3a2->getRepository($entityName);
  5.     }
  6.     public function contains($entity)
  7.     {
  8.         $this->initializera9f5f && ($this->initializera9f5f->__invoke($valueHolder5d3a2$this'contains', array('entity' => $entity), $this->initializera9f5f) || 1) && $this->valueHolder5d3a2 $valueHolder5d3a2;
EntityManager_9a5be93->getRepository('App\\Entity\\User') in /home/dombusin.com/public_html/src/Service/Discount/UserDiscount.php (line 34)
  1.         $this->em $em;
  2.         $this->Auth $Auth;
  3.         $this->Auth->setUser($security->getUser());
  4.         $this->ModelOrder $ModelOrder;
  5.         $this->Users $this->em->getRepository(User::class);
  6.         $this->Discounts $this->em->getRepository(Discount::class);
  7.     }
  8.     /**
  9.      * Если пользователь не залогинен возаращает 0. 
  1.         if (isset($this->privates['App\\Service\\Discount\\UserDiscount'])) {
  2.             return $this->privates['App\\Service\\Discount\\UserDiscount'];
  3.         }
  4.         return $this->privates['App\\Service\\Discount\\UserDiscount'] = new \App\Service\Discount\UserDiscount($a$b$c$d);
  5.     }
  6.     /**
  7.      * Gets the private 'App\Service\Filter\Cats' shared autowired service.
  8.      *
  1.      *
  2.      * @return \App\Model\Prod
  3.      */
  4.     protected function getProdService()
  5.     {
  6.         $a = ($this->privates['App\\Service\\Discount\\UserDiscount'] ?? $this->getUserDiscountService());
  7.         if (isset($this->privates['App\\Model\\Prod'])) {
  8.             return $this->privates['App\\Model\\Prod'];
  9.         }
  1.      *
  2.      * @return \App\Repository\ProdRepository
  3.      */
  4.     protected function getProdRepositoryService()
  5.     {
  6.         $a = ($this->privates['App\\Model\\Prod'] ?? $this->getProdService());
  7.         if (isset($this->privates['App\\Repository\\ProdRepository'])) {
  8.             return $this->privates['App\\Repository\\ProdRepository'];
  9.         }
  1.      *
  2.      * @return \App\Model\Wishlist
  3.      */
  4.     protected function getWishlistService()
  5.     {
  6.         $a = ($this->privates['App\\Repository\\ProdRepository'] ?? $this->getProdRepositoryService());
  7.         if (isset($this->privates['App\\Model\\Wishlist'])) {
  8.             return $this->privates['App\\Model\\Wishlist'];
  9.         }
  10.         $b = ($this->privates['App\\Model\\Prod'] ?? $this->getProdService());
  1.         if (isset($this->privates['App\\EventSubscriber\\Redirect'])) {
  2.             return $this->privates['App\\EventSubscriber\\Redirect'];
  3.         }
  4.         return $this->privates['App\\EventSubscriber\\Redirect'] = new \App\EventSubscriber\Redirect(($this->privates['App\\DTO\\AppDTO'] ?? ($this->privates['App\\DTO\\AppDTO'] = new \App\DTO\AppDTO())), $a$b, ($this->privates['.app_cache.taggable'] ?? $this->get_AppCache_TaggableService()), $c, ($this->privates['App\\Env'] ?? ($this->privates['App\\Env'] = new \App\Env(($this->services['kernel'] ?? $this->get('kernel'1))))), ($this->privates['App\\Func'] ?? ($this->privates['App\\Func'] = new \App\Func())), ($this->privates['App\\Model\\Wishlist'] ?? $this->getWishlistService()), $d, ($this->privates['App\\Repository\\RedirectRepository'] ?? $this->getRedirectRepositoryService()));
  5.     }
  6.     /**
  7.      * Gets the private 'App\EventSubscriber\RedirectLocale' shared autowired service.
  8.      *
  1.         }, => 'onLoginSuccessEvent'], 0);
  2.         $instance->addListener('app.order.payed', [=> function () {
  3.             return ($this->privates['App\\EventSubscriber\\PrzlelewyOrderPayed'] ?? $this->load('getPrzlelewyOrderPayedService'));
  4.         }, => 'onOrderPayed'], 0);
  5.         $instance->addListener('kernel.request', [=> function () {
  6.             return ($this->privates['App\\EventSubscriber\\Redirect'] ?? $this->getRedirectService());
  7.         }, => 'onRequest'], 0);
  8.         $instance->addListener('kernel.request', [=> function () {
  9.             return ($this->privates['App\\EventSubscriber\\RedirectLocale'] ?? $this->getRedirectLocaleService());
  10.         }, => 'onKernelController'], 0);
  11.         $instance->addListener('app.order.maked', [=> function () {
  1.         }
  2.         foreach ($this->listeners[$eventName] as $priority => &$listeners) {
  3.             foreach ($listeners as $k => &$v) {
  4.                 if ($v !== $listener && \is_array($v) && isset($v[0]) && $v[0] instanceof \Closure && >= \count($v)) {
  5.                     $v[0] = $v[0]();
  6.                     $v[1] = $v[1] ?? '__invoke';
  7.                 }
  8.                 if ($v === $listener || ($listener instanceof \Closure && $v == $listener)) {
  9.                     unset($listeners[$k], $this->sorted[$eventName], $this->optimized[$eventName]);
  10.                 }
  1.         foreach ($this->dispatcher->getListeners($eventName) as $listener) {
  2.             $priority $this->getListenerPriority($eventName$listener);
  3.             $wrappedListener = new WrappedListener($listener instanceof WrappedListener $listener->getWrappedListener() : $listenernull$this->stopwatch$this);
  4.             $this->wrappedListeners[$eventName][] = $wrappedListener;
  5.             $this->dispatcher->removeListener($eventName$listener);
  6.             $this->dispatcher->addListener($eventName$wrappedListener$priority);
  7.             $this->callStack->attach($wrappedListener, [$eventName$this->currentRequestHash]);
  8.         }
  9.     }
  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.     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.         $throwable $event->getThrowable();
  2.         $request $this->duplicateRequest($throwable$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.         } finally {
  6.             $this->requestStack->pop();
  7.         }
  8.     }
  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.         if (!IpUtils::checkIp('127.0.0.1'$trustedProxies)) {
  2.             Request::setTrustedProxies(array_merge($trustedProxies, ['127.0.0.1']), Request::getTrustedHeaderSet());
  3.         }
  4.         try {
  5.             return $kernel->handle($request$type$catch);
  6.         } finally {
  7.             // restore global state
  8.             Request::setTrustedProxies($trustedProxies$trustedHeaderSet);
  9.         }
  10.     }
  1.         if ($this->surrogate) {
  2.             $this->surrogate->addSurrogateCapability($request);
  3.         }
  4.         // always a "master" request (as the real master request can be in cache)
  5.         $response SubRequestHandler::handle($this->kernel$requestHttpKernelInterface::MAIN_REQUEST$catch);
  6.         /*
  7.          * Support stale-if-error given on Responses or as a config option.
  8.          * RFC 7234 summarizes in Section 4.2.4 (but also mentions with the individual
  9.          * Cache-Control directives) that
  1.     protected function forward(Request $requestbool $catch falseResponse $entry null): Response
  2.     {
  3.         $this->getKernel()->boot();
  4.         $this->getKernel()->getContainer()->set('cache'$this);
  5.         return parent::forward($request$catch$entry);
  6.     }
  7.     /**
  8.      * Returns an array of options to customize the Cache configuration.
  9.      */
  1.         // avoid that the backend sends no content
  2.         $subRequest->headers->remove('If-Modified-Since');
  3.         $subRequest->headers->remove('If-None-Match');
  4.         $response $this->forward($subRequest$catch);
  5.         if ($response->isCacheable()) {
  6.             $this->store($request$response);
  7.         }
  1.         }
  2.         if (null === $entry) {
  3.             $this->record($request'miss');
  4.             return $this->fetch($request$catch);
  5.         }
  6.         if (!$this->isFreshEnough($request$entry)) {
  7.             $this->record($request'stale');
  1.                 reload the cache by fetching a fresh response and caching it (if possible).
  2.             */
  3.             $this->record($request'reload');
  4.             $response $this->fetch($request$catch);
  5.         } else {
  6.             $response $this->lookup($request$catch);
  7.         }
  8.         $this->restoreResponseBody($request$response);
  9.         if (HttpKernelInterface::MAIN_REQUEST === $type) {
  1.     {
  2.         if (!$this->booted) {
  3.             $container $this->container ?? $this->preBoot();
  4.             if ($container->has('http_cache')) {
  5.                 return $container->get('http_cache')->handle($request$type$catch);
  6.             }
  7.         }
  8.         $this->boot();
  9.         ++$this->requestStackSize;
  1.         $this->request $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request$response);
  9.         }
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/home/dombusin.com/public_html/vendor/autoload_runtime.php') in /home/dombusin.com/public_html/public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {    
  5.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

PDOException

could not find driver

  1.         string $username,
  2.         string $password,
  3.         array $options
  4.     ): PDO {
  5.         if (PHP_VERSION_ID 80400) {
  6.             return new PDO($dsn$username$password$options);
  7.         }
  8.         return PDO::connect($dsn$username$password$options);
  9.     }
  10. }
  1.         string $username,
  2.         string $password,
  3.         array $options
  4.     ): PDO {
  5.         if (PHP_VERSION_ID 80400) {
  6.             return new PDO($dsn$username$password$options);
  7.         }
  8.         return PDO::connect($dsn$username$password$options);
  9.     }
  10. }
  1.         $safeParams $params;
  2.         unset($safeParams['password'], $safeParams['url']);
  3.         try {
  4.             $pdo $this->doConnect(
  5.                 $this->constructPdoDsn($safeParams),
  6.                 $params['user'] ?? '',
  7.                 $params['password'] ?? '',
  8.                 $driverOptions,
  9.             );
  1.      */
  2.     public function connect(
  3.         #[SensitiveParameter]
  4.         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.         }
  2.         // If not connected, we need to connect now to determine the platform version.
  3.         if ($this->_conn === null) {
  4.             try {
  5.                 $this->connect();
  6.             } catch (Exception $originalException) {
  7.                 if (! isset($this->params['dbname'])) {
  8.                     throw $originalException;
  9.                 }
  1.      *
  2.      * @throws Exception If an invalid platform was specified for this connection.
  3.      */
  4.     private function detectDatabasePlatform(): AbstractPlatform
  5.     {
  6.         $version $this->getDatabasePlatformVersion();
  7.         if ($version !== null) {
  8.             assert($this->_driver instanceof VersionAwarePlatformDriver);
  9.             return $this->_driver->createDatabasePlatformForVersion($version);
  1.      * @throws Exception
  2.      */
  3.     public function getDatabasePlatform()
  4.     {
  5.         if ($this->platform === null) {
  6.             $this->platform $this->detectDatabasePlatform();
  7.             $this->platform->setEventManager($this->_eventManager);
  8.             $this->platform->setDisableTypeComments($this->_config->getDisableTypeComments());
  9.         }
  10.         return $this->platform;
  1.     }
  2.     private function getTargetPlatform(): Platforms\AbstractPlatform
  3.     {
  4.         if (! $this->targetPlatform) {
  5.             $this->targetPlatform $this->em->getConnection()->getDatabasePlatform();
  6.         }
  7.         return $this->targetPlatform;
  8.     }
  9. }
  1.      */
  2.     private function completeIdGeneratorMapping(ClassMetadataInfo $class): void
  3.     {
  4.         $idGenType $class->generatorType;
  5.         if ($idGenType === ClassMetadata::GENERATOR_TYPE_AUTO) {
  6.             $class->setIdGeneratorType($this->determineIdGeneratorStrategy($this->getTargetPlatform()));
  7.         }
  8.         // Create & assign an appropriate ID generator instance
  9.         switch ($class->generatorType) {
  10.             case ClassMetadata::GENERATOR_TYPE_IDENTITY:
  1.         // However this is only true if the hierarchy of parents contains the root entity,
  2.         // if it consists of mapped superclasses these don't necessarily include the id field.
  3.         if ($parent && $rootEntityFound) {
  4.             $this->inheritIdGeneratorMapping($class$parent);
  5.         } else {
  6.             $this->completeIdGeneratorMapping($class);
  7.         }
  8.         if (! $class->isMappedSuperclass) {
  9.             if ($rootEntityFound && $class->isInheritanceTypeNone()) {
  10.                 Deprecation::trigger(
  1.     /**
  2.      * {@inheritDoc}
  3.      */
  4.     protected function doLoadMetadata($class$parent$rootEntityFound, array $nonSuperclassParents): void
  5.     {
  6.         parent::doLoadMetadata($class$parent$rootEntityFound$nonSuperclassParents);
  7.         $customGeneratorDefinition $class->customGeneratorDefinition;
  8.         if (! isset($customGeneratorDefinition['instance'])) {
  9.             return;
  1.             }
  2.             $class $this->newClassMetadataInstance($className);
  3.             $this->initializeReflection($class$reflService);
  4.             $this->doLoadMetadata($class$parent$rootEntityFound$visited);
  5.             $this->loadedMetadata[$className] = $class;
  6.             $parent $class;
  1.                     /** @phpstan-var CMTemplate $cached */
  2.                     $this->loadedMetadata[$realClassName] = $cached;
  3.                     $this->wakeupReflection($cached$this->getReflectionService());
  4.                 } else {
  5.                     $loadedMetadata $this->loadMetadata($realClassName);
  6.                     $classNames     array_combine(
  7.                         array_map([$this'getCacheKey'], $loadedMetadata),
  8.                         $loadedMetadata
  9.                     );
  1.      *
  2.      * {@inheritDoc}
  3.      */
  4.     public function getClassMetadata($className)
  5.     {
  6.         return $this->metadataFactory->getMetadataFor($className);
  7.     }
  8.     /**
  9.      * {@inheritDoc}
  10.      */
  1.      *
  2.      * @template T of object
  3.      */
  4.     private function doGetRepository(EntityManagerInterface $entityManagerstring $entityNamebool $strictTypeCheck): ObjectRepository
  5.     {
  6.         $metadata            $entityManager->getClassMetadata($entityName);
  7.         $repositoryServiceId $metadata->customRepositoryClassName;
  8.         $customRepositoryName $metadata->customRepositoryClassName;
  9.         if ($customRepositoryName !== null) {
  10.             // fetch from the container
  1.     trait RepositoryFactoryCompatibility
  2.     {
  3.         /** {@inheritDoc} */
  4.         public function getRepository(EntityManagerInterface $entityManager$entityName): ObjectRepository
  5.         {
  6.             return $this->doGetRepository($entityManager$entityNamefalse);
  7.         }
  8.     }
  9. }
  1.                     __METHOD__
  2.                 ));
  3.             }
  4.         }
  5.         $repository $this->repositoryFactory->getRepository($this$entityName);
  6.         if (! $repository instanceof EntityRepository) {
  7.             Deprecation::trigger(
  8.                 'doctrine/orm',
  9.                 'https://github.com/doctrine/orm/pull/9533',
  10.                 'Not returning an instance of %s from %s::getRepository() is deprecated and will cause a TypeError on 3.0.',
  1.     public function getRepository($entityName)
  2.     {
  3.         $this->initializera9f5f && ($this->initializera9f5f->__invoke($valueHolder5d3a2$this'getRepository', array('entityName' => $entityName), $this->initializera9f5f) || 1) && $this->valueHolder5d3a2 $valueHolder5d3a2;
  4.         return $this->valueHolder5d3a2->getRepository($entityName);
  5.     }
  6.     public function contains($entity)
  7.     {
  8.         $this->initializera9f5f && ($this->initializera9f5f->__invoke($valueHolder5d3a2$this'contains', array('entity' => $entity), $this->initializera9f5f) || 1) && $this->valueHolder5d3a2 $valueHolder5d3a2;
EntityManager_9a5be93->getRepository('App\\Entity\\User') in /home/dombusin.com/public_html/src/Service/Discount/UserDiscount.php (line 34)
  1.         $this->em $em;
  2.         $this->Auth $Auth;
  3.         $this->Auth->setUser($security->getUser());
  4.         $this->ModelOrder $ModelOrder;
  5.         $this->Users $this->em->getRepository(User::class);
  6.         $this->Discounts $this->em->getRepository(Discount::class);
  7.     }
  8.     /**
  9.      * Если пользователь не залогинен возаращает 0. 
  1.         if (isset($this->privates['App\\Service\\Discount\\UserDiscount'])) {
  2.             return $this->privates['App\\Service\\Discount\\UserDiscount'];
  3.         }
  4.         return $this->privates['App\\Service\\Discount\\UserDiscount'] = new \App\Service\Discount\UserDiscount($a$b$c$d);
  5.     }
  6.     /**
  7.      * Gets the private 'App\Service\Filter\Cats' shared autowired service.
  8.      *
  1.      *
  2.      * @return \App\Model\Prod
  3.      */
  4.     protected function getProdService()
  5.     {
  6.         $a = ($this->privates['App\\Service\\Discount\\UserDiscount'] ?? $this->getUserDiscountService());
  7.         if (isset($this->privates['App\\Model\\Prod'])) {
  8.             return $this->privates['App\\Model\\Prod'];
  9.         }
  1.      *
  2.      * @return \App\Repository\ProdRepository
  3.      */
  4.     protected function getProdRepositoryService()
  5.     {
  6.         $a = ($this->privates['App\\Model\\Prod'] ?? $this->getProdService());
  7.         if (isset($this->privates['App\\Repository\\ProdRepository'])) {
  8.             return $this->privates['App\\Repository\\ProdRepository'];
  9.         }
  1.      *
  2.      * @return \App\Model\Wishlist
  3.      */
  4.     protected function getWishlistService()
  5.     {
  6.         $a = ($this->privates['App\\Repository\\ProdRepository'] ?? $this->getProdRepositoryService());
  7.         if (isset($this->privates['App\\Model\\Wishlist'])) {
  8.             return $this->privates['App\\Model\\Wishlist'];
  9.         }
  10.         $b = ($this->privates['App\\Model\\Prod'] ?? $this->getProdService());
  1.         if (isset($this->privates['App\\EventSubscriber\\Redirect'])) {
  2.             return $this->privates['App\\EventSubscriber\\Redirect'];
  3.         }
  4.         return $this->privates['App\\EventSubscriber\\Redirect'] = new \App\EventSubscriber\Redirect(($this->privates['App\\DTO\\AppDTO'] ?? ($this->privates['App\\DTO\\AppDTO'] = new \App\DTO\AppDTO())), $a$b, ($this->privates['.app_cache.taggable'] ?? $this->get_AppCache_TaggableService()), $c, ($this->privates['App\\Env'] ?? ($this->privates['App\\Env'] = new \App\Env(($this->services['kernel'] ?? $this->get('kernel'1))))), ($this->privates['App\\Func'] ?? ($this->privates['App\\Func'] = new \App\Func())), ($this->privates['App\\Model\\Wishlist'] ?? $this->getWishlistService()), $d, ($this->privates['App\\Repository\\RedirectRepository'] ?? $this->getRedirectRepositoryService()));
  5.     }
  6.     /**
  7.      * Gets the private 'App\EventSubscriber\RedirectLocale' shared autowired service.
  8.      *
  1.         }, => 'onLoginSuccessEvent'], 0);
  2.         $instance->addListener('app.order.payed', [=> function () {
  3.             return ($this->privates['App\\EventSubscriber\\PrzlelewyOrderPayed'] ?? $this->load('getPrzlelewyOrderPayedService'));
  4.         }, => 'onOrderPayed'], 0);
  5.         $instance->addListener('kernel.request', [=> function () {
  6.             return ($this->privates['App\\EventSubscriber\\Redirect'] ?? $this->getRedirectService());
  7.         }, => 'onRequest'], 0);
  8.         $instance->addListener('kernel.request', [=> function () {
  9.             return ($this->privates['App\\EventSubscriber\\RedirectLocale'] ?? $this->getRedirectLocaleService());
  10.         }, => 'onKernelController'], 0);
  11.         $instance->addListener('app.order.maked', [=> function () {
  1.         }
  2.         foreach ($this->listeners[$eventName] as $priority => &$listeners) {
  3.             foreach ($listeners as $k => &$v) {
  4.                 if ($v !== $listener && \is_array($v) && isset($v[0]) && $v[0] instanceof \Closure && >= \count($v)) {
  5.                     $v[0] = $v[0]();
  6.                     $v[1] = $v[1] ?? '__invoke';
  7.                 }
  8.                 if ($v === $listener || ($listener instanceof \Closure && $v == $listener)) {
  9.                     unset($listeners[$k], $this->sorted[$eventName], $this->optimized[$eventName]);
  10.                 }
  1.         foreach ($this->dispatcher->getListeners($eventName) as $listener) {
  2.             $priority $this->getListenerPriority($eventName$listener);
  3.             $wrappedListener = new WrappedListener($listener instanceof WrappedListener $listener->getWrappedListener() : $listenernull$this->stopwatch$this);
  4.             $this->wrappedListeners[$eventName][] = $wrappedListener;
  5.             $this->dispatcher->removeListener($eventName$listener);
  6.             $this->dispatcher->addListener($eventName$wrappedListener$priority);
  7.             $this->callStack->attach($wrappedListener, [$eventName$this->currentRequestHash]);
  8.         }
  9.     }
  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.     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.         $throwable $event->getThrowable();
  2.         $request $this->duplicateRequest($throwable$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.         } finally {
  6.             $this->requestStack->pop();
  7.         }
  8.     }
  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.         if (!IpUtils::checkIp('127.0.0.1'$trustedProxies)) {
  2.             Request::setTrustedProxies(array_merge($trustedProxies, ['127.0.0.1']), Request::getTrustedHeaderSet());
  3.         }
  4.         try {
  5.             return $kernel->handle($request$type$catch);
  6.         } finally {
  7.             // restore global state
  8.             Request::setTrustedProxies($trustedProxies$trustedHeaderSet);
  9.         }
  10.     }
  1.         if ($this->surrogate) {
  2.             $this->surrogate->addSurrogateCapability($request);
  3.         }
  4.         // always a "master" request (as the real master request can be in cache)
  5.         $response SubRequestHandler::handle($this->kernel$requestHttpKernelInterface::MAIN_REQUEST$catch);
  6.         /*
  7.          * Support stale-if-error given on Responses or as a config option.
  8.          * RFC 7234 summarizes in Section 4.2.4 (but also mentions with the individual
  9.          * Cache-Control directives) that
  1.     protected function forward(Request $requestbool $catch falseResponse $entry null): Response
  2.     {
  3.         $this->getKernel()->boot();
  4.         $this->getKernel()->getContainer()->set('cache'$this);
  5.         return parent::forward($request$catch$entry);
  6.     }
  7.     /**
  8.      * Returns an array of options to customize the Cache configuration.
  9.      */
  1.         // avoid that the backend sends no content
  2.         $subRequest->headers->remove('If-Modified-Since');
  3.         $subRequest->headers->remove('If-None-Match');
  4.         $response $this->forward($subRequest$catch);
  5.         if ($response->isCacheable()) {
  6.             $this->store($request$response);
  7.         }
  1.         }
  2.         if (null === $entry) {
  3.             $this->record($request'miss');
  4.             return $this->fetch($request$catch);
  5.         }
  6.         if (!$this->isFreshEnough($request$entry)) {
  7.             $this->record($request'stale');
  1.                 reload the cache by fetching a fresh response and caching it (if possible).
  2.             */
  3.             $this->record($request'reload');
  4.             $response $this->fetch($request$catch);
  5.         } else {
  6.             $response $this->lookup($request$catch);
  7.         }
  8.         $this->restoreResponseBody($request$response);
  9.         if (HttpKernelInterface::MAIN_REQUEST === $type) {
  1.     {
  2.         if (!$this->booted) {
  3.             $container $this->container ?? $this->preBoot();
  4.             if ($container->has('http_cache')) {
  5.                 return $container->get('http_cache')->handle($request$type$catch);
  6.             }
  7.         }
  8.         $this->boot();
  9.         ++$this->requestStackSize;
  1.         $this->request $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request$response);
  9.         }
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/home/dombusin.com/public_html/vendor/autoload_runtime.php') in /home/dombusin.com/public_html/public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {    
  5.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

Doctrine\DBAL\Exception\ DriverException

An exception occurred in the driver: could not find driver

  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.         }
  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
  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.         }
  2.         // If not connected, we need to connect now to determine the platform version.
  3.         if ($this->_conn === null) {
  4.             try {
  5.                 $this->connect();
  6.             } catch (Exception $originalException) {
  7.                 if (! isset($this->params['dbname'])) {
  8.                     throw $originalException;
  9.                 }
  1.      *
  2.      * @throws Exception If an invalid platform was specified for this connection.
  3.      */
  4.     private function detectDatabasePlatform(): AbstractPlatform
  5.     {
  6.         $version $this->getDatabasePlatformVersion();
  7.         if ($version !== null) {
  8.             assert($this->_driver instanceof VersionAwarePlatformDriver);
  9.             return $this->_driver->createDatabasePlatformForVersion($version);
  1.      * @throws Exception
  2.      */
  3.     public function getDatabasePlatform()
  4.     {
  5.         if ($this->platform === null) {
  6.             $this->platform $this->detectDatabasePlatform();
  7.             $this->platform->setEventManager($this->_eventManager);
  8.             $this->platform->setDisableTypeComments($this->_config->getDisableTypeComments());
  9.         }
  10.         return $this->platform;
  1.     }
  2.     private function getTargetPlatform(): Platforms\AbstractPlatform
  3.     {
  4.         if (! $this->targetPlatform) {
  5.             $this->targetPlatform $this->em->getConnection()->getDatabasePlatform();
  6.         }
  7.         return $this->targetPlatform;
  8.     }
  9. }
  1.      */
  2.     private function completeIdGeneratorMapping(ClassMetadataInfo $class): void
  3.     {
  4.         $idGenType $class->generatorType;
  5.         if ($idGenType === ClassMetadata::GENERATOR_TYPE_AUTO) {
  6.             $class->setIdGeneratorType($this->determineIdGeneratorStrategy($this->getTargetPlatform()));
  7.         }
  8.         // Create & assign an appropriate ID generator instance
  9.         switch ($class->generatorType) {
  10.             case ClassMetadata::GENERATOR_TYPE_IDENTITY:
  1.         // However this is only true if the hierarchy of parents contains the root entity,
  2.         // if it consists of mapped superclasses these don't necessarily include the id field.
  3.         if ($parent && $rootEntityFound) {
  4.             $this->inheritIdGeneratorMapping($class$parent);
  5.         } else {
  6.             $this->completeIdGeneratorMapping($class);
  7.         }
  8.         if (! $class->isMappedSuperclass) {
  9.             if ($rootEntityFound && $class->isInheritanceTypeNone()) {
  10.                 Deprecation::trigger(
  1.     /**
  2.      * {@inheritDoc}
  3.      */
  4.     protected function doLoadMetadata($class$parent$rootEntityFound, array $nonSuperclassParents): void
  5.     {
  6.         parent::doLoadMetadata($class$parent$rootEntityFound$nonSuperclassParents);
  7.         $customGeneratorDefinition $class->customGeneratorDefinition;
  8.         if (! isset($customGeneratorDefinition['instance'])) {
  9.             return;
  1.             }
  2.             $class $this->newClassMetadataInstance($className);
  3.             $this->initializeReflection($class$reflService);
  4.             $this->doLoadMetadata($class$parent$rootEntityFound$visited);
  5.             $this->loadedMetadata[$className] = $class;
  6.             $parent $class;
  1.                     /** @phpstan-var CMTemplate $cached */
  2.                     $this->loadedMetadata[$realClassName] = $cached;
  3.                     $this->wakeupReflection($cached$this->getReflectionService());
  4.                 } else {
  5.                     $loadedMetadata $this->loadMetadata($realClassName);
  6.                     $classNames     array_combine(
  7.                         array_map([$this'getCacheKey'], $loadedMetadata),
  8.                         $loadedMetadata
  9.                     );
  1.      *
  2.      * {@inheritDoc}
  3.      */
  4.     public function getClassMetadata($className)
  5.     {
  6.         return $this->metadataFactory->getMetadataFor($className);
  7.     }
  8.     /**
  9.      * {@inheritDoc}
  10.      */
  1.      *
  2.      * @template T of object
  3.      */
  4.     private function doGetRepository(EntityManagerInterface $entityManagerstring $entityNamebool $strictTypeCheck): ObjectRepository
  5.     {
  6.         $metadata            $entityManager->getClassMetadata($entityName);
  7.         $repositoryServiceId $metadata->customRepositoryClassName;
  8.         $customRepositoryName $metadata->customRepositoryClassName;
  9.         if ($customRepositoryName !== null) {
  10.             // fetch from the container
  1.     trait RepositoryFactoryCompatibility
  2.     {
  3.         /** {@inheritDoc} */
  4.         public function getRepository(EntityManagerInterface $entityManager$entityName): ObjectRepository
  5.         {
  6.             return $this->doGetRepository($entityManager$entityNamefalse);
  7.         }
  8.     }
  9. }
  1.                     __METHOD__
  2.                 ));
  3.             }
  4.         }
  5.         $repository $this->repositoryFactory->getRepository($this$entityName);
  6.         if (! $repository instanceof EntityRepository) {
  7.             Deprecation::trigger(
  8.                 'doctrine/orm',
  9.                 'https://github.com/doctrine/orm/pull/9533',
  10.                 'Not returning an instance of %s from %s::getRepository() is deprecated and will cause a TypeError on 3.0.',
  1.     public function getRepository($entityName)
  2.     {
  3.         $this->initializera9f5f && ($this->initializera9f5f->__invoke($valueHolder5d3a2$this'getRepository', array('entityName' => $entityName), $this->initializera9f5f) || 1) && $this->valueHolder5d3a2 $valueHolder5d3a2;
  4.         return $this->valueHolder5d3a2->getRepository($entityName);
  5.     }
  6.     public function contains($entity)
  7.     {
  8.         $this->initializera9f5f && ($this->initializera9f5f->__invoke($valueHolder5d3a2$this'contains', array('entity' => $entity), $this->initializera9f5f) || 1) && $this->valueHolder5d3a2 $valueHolder5d3a2;
EntityManager_9a5be93->getRepository('App\\Entity\\User') in /home/dombusin.com/public_html/src/Service/Discount/UserDiscount.php (line 34)
  1.         $this->em $em;
  2.         $this->Auth $Auth;
  3.         $this->Auth->setUser($security->getUser());
  4.         $this->ModelOrder $ModelOrder;
  5.         $this->Users $this->em->getRepository(User::class);
  6.         $this->Discounts $this->em->getRepository(Discount::class);
  7.     }
  8.     /**
  9.      * Если пользователь не залогинен возаращает 0. 
  1.         if (isset($this->privates['App\\Service\\Discount\\UserDiscount'])) {
  2.             return $this->privates['App\\Service\\Discount\\UserDiscount'];
  3.         }
  4.         return $this->privates['App\\Service\\Discount\\UserDiscount'] = new \App\Service\Discount\UserDiscount($a$b$c$d);
  5.     }
  6.     /**
  7.      * Gets the private 'App\Service\Filter\Cats' shared autowired service.
  8.      *
  1.      *
  2.      * @return \App\Model\Prod
  3.      */
  4.     protected function getProdService()
  5.     {
  6.         $a = ($this->privates['App\\Service\\Discount\\UserDiscount'] ?? $this->getUserDiscountService());
  7.         if (isset($this->privates['App\\Model\\Prod'])) {
  8.             return $this->privates['App\\Model\\Prod'];
  9.         }
  1.      *
  2.      * @return \App\Repository\ProdRepository
  3.      */
  4.     protected function getProdRepositoryService()
  5.     {
  6.         $a = ($this->privates['App\\Model\\Prod'] ?? $this->getProdService());
  7.         if (isset($this->privates['App\\Repository\\ProdRepository'])) {
  8.             return $this->privates['App\\Repository\\ProdRepository'];
  9.         }
  1.      *
  2.      * @return \App\Model\Wishlist
  3.      */
  4.     protected function getWishlistService()
  5.     {
  6.         $a = ($this->privates['App\\Repository\\ProdRepository'] ?? $this->getProdRepositoryService());
  7.         if (isset($this->privates['App\\Model\\Wishlist'])) {
  8.             return $this->privates['App\\Model\\Wishlist'];
  9.         }
  10.         $b = ($this->privates['App\\Model\\Prod'] ?? $this->getProdService());
  1.         if (isset($this->privates['App\\EventSubscriber\\Redirect'])) {
  2.             return $this->privates['App\\EventSubscriber\\Redirect'];
  3.         }
  4.         return $this->privates['App\\EventSubscriber\\Redirect'] = new \App\EventSubscriber\Redirect(($this->privates['App\\DTO\\AppDTO'] ?? ($this->privates['App\\DTO\\AppDTO'] = new \App\DTO\AppDTO())), $a$b, ($this->privates['.app_cache.taggable'] ?? $this->get_AppCache_TaggableService()), $c, ($this->privates['App\\Env'] ?? ($this->privates['App\\Env'] = new \App\Env(($this->services['kernel'] ?? $this->get('kernel'1))))), ($this->privates['App\\Func'] ?? ($this->privates['App\\Func'] = new \App\Func())), ($this->privates['App\\Model\\Wishlist'] ?? $this->getWishlistService()), $d, ($this->privates['App\\Repository\\RedirectRepository'] ?? $this->getRedirectRepositoryService()));
  5.     }
  6.     /**
  7.      * Gets the private 'App\EventSubscriber\RedirectLocale' shared autowired service.
  8.      *
  1.         }, => 'onLoginSuccessEvent'], 0);
  2.         $instance->addListener('app.order.payed', [=> function () {
  3.             return ($this->privates['App\\EventSubscriber\\PrzlelewyOrderPayed'] ?? $this->load('getPrzlelewyOrderPayedService'));
  4.         }, => 'onOrderPayed'], 0);
  5.         $instance->addListener('kernel.request', [=> function () {
  6.             return ($this->privates['App\\EventSubscriber\\Redirect'] ?? $this->getRedirectService());
  7.         }, => 'onRequest'], 0);
  8.         $instance->addListener('kernel.request', [=> function () {
  9.             return ($this->privates['App\\EventSubscriber\\RedirectLocale'] ?? $this->getRedirectLocaleService());
  10.         }, => 'onKernelController'], 0);
  11.         $instance->addListener('app.order.maked', [=> 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.     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.     }
  1.         if (!IpUtils::checkIp('127.0.0.1'$trustedProxies)) {
  2.             Request::setTrustedProxies(array_merge($trustedProxies, ['127.0.0.1']), Request::getTrustedHeaderSet());
  3.         }
  4.         try {
  5.             return $kernel->handle($request$type$catch);
  6.         } finally {
  7.             // restore global state
  8.             Request::setTrustedProxies($trustedProxies$trustedHeaderSet);
  9.         }
  10.     }
  1.         if ($this->surrogate) {
  2.             $this->surrogate->addSurrogateCapability($request);
  3.         }
  4.         // always a "master" request (as the real master request can be in cache)
  5.         $response SubRequestHandler::handle($this->kernel$requestHttpKernelInterface::MAIN_REQUEST$catch);
  6.         /*
  7.          * Support stale-if-error given on Responses or as a config option.
  8.          * RFC 7234 summarizes in Section 4.2.4 (but also mentions with the individual
  9.          * Cache-Control directives) that
  1.     protected function forward(Request $requestbool $catch falseResponse $entry null): Response
  2.     {
  3.         $this->getKernel()->boot();
  4.         $this->getKernel()->getContainer()->set('cache'$this);
  5.         return parent::forward($request$catch$entry);
  6.     }
  7.     /**
  8.      * Returns an array of options to customize the Cache configuration.
  9.      */
  1.         // avoid that the backend sends no content
  2.         $subRequest->headers->remove('If-Modified-Since');
  3.         $subRequest->headers->remove('If-None-Match');
  4.         $response $this->forward($subRequest$catch);
  5.         if ($response->isCacheable()) {
  6.             $this->store($request$response);
  7.         }
  1.         }
  2.         if (null === $entry) {
  3.             $this->record($request'miss');
  4.             return $this->fetch($request$catch);
  5.         }
  6.         if (!$this->isFreshEnough($request$entry)) {
  7.             $this->record($request'stale');
  1.                 reload the cache by fetching a fresh response and caching it (if possible).
  2.             */
  3.             $this->record($request'reload');
  4.             $response $this->fetch($request$catch);
  5.         } else {
  6.             $response $this->lookup($request$catch);
  7.         }
  8.         $this->restoreResponseBody($request$response);
  9.         if (HttpKernelInterface::MAIN_REQUEST === $type) {
  1.     {
  2.         if (!$this->booted) {
  3.             $container $this->container ?? $this->preBoot();
  4.             if ($container->has('http_cache')) {
  5.                 return $container->get('http_cache')->handle($request$type$catch);
  6.             }
  7.         }
  8.         $this->boot();
  9.         ++$this->requestStackSize;
  1.         $this->request $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request$response);
  9.         }
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/home/dombusin.com/public_html/vendor/autoload_runtime.php') in /home/dombusin.com/public_html/public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {    
  5.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

Fatal error: Uncaught ErrorException: Warning: include(/home/dombusin.com/public_html/vendor/symfony/error-handler/Resources/views/traces.html.php): Failed to open stream: Too many open files in system in /home/dombusin.com/public_html/vendor/symfony/error-handler/ErrorRenderer/HtmlErrorRenderer.php:336 Stack trace: #0 /home/dombusin.com/public_html/vendor/symfony/error-handler/ErrorRenderer/HtmlErrorRenderer.php(336): include() #1 /home/dombusin.com/public_html/vendor/symfony/error-handler/Resources/views/exception.html.php(55): Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('views/traces.ht...', Array) #2 /home/dombusin.com/public_html/vendor/symfony/error-handler/ErrorRenderer/HtmlErrorRenderer.php(336): include('/home/dombusin....') #3 /home/dombusin.com/public_html/vendor/symfony/error-handler/Resources/views/exception_full.html.php(35): Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('views/exception...', Array) #4 /home/dombusin.com/public_html/vendor/symfony/error-handler/ErrorRenderer/HtmlErrorRenderer.php(336): include('/home/dombusin....') #5 /home/dombusin.com/public_html/vendor/symfony/error-handler/ErrorRenderer/HtmlErrorRenderer.php(140): Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('views/exception...', Array) #6 /home/dombusin.com/public_html/vendor/symfony/error-handler/ErrorRenderer/HtmlErrorRenderer.php(72): Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->renderException(Object(Symfony\Component\ErrorHandler\Exception\FlattenException)) #7 /home/dombusin.com/public_html/vendor/symfony/error-handler/ErrorHandler.php(653): Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->render(Object(Symfony\Component\ErrorHandler\Exception\FlattenException)) #8 /home/dombusin.com/public_html/vendor/symfony/error-handler/ErrorHandler.php(541): Symfony\Component\ErrorHandler\ErrorHandler->renderException(Object(Doctrine\DBAL\Exception\DriverException)) #9 [internal function]: Symfony\Component\ErrorHandler\ErrorHandler->handleException(Object(Doctrine\DBAL\Exception\DriverException)) #10 {main} thrown in /home/dombusin.com/public_html/vendor/symfony/error-handler/ErrorRenderer/HtmlErrorRenderer.php on line 336