Exceptions
Exceptions 3
Doctrine\DBAL\Exception\ DriverException
case 1364:
case 1566:
return new NotNullConstraintViolationException($exception, $query);
}
return new DriverException($exception, $query);
}
}
in
vendor/doctrine/dbal/src/Connection.php
->
convert
(line 1943)
private function handleDriverException(
Driver\Exception $driverException,
?Query $query
): DriverException {
$this->exceptionConverter ??= $this->_driver->getExceptionConverter();
$exception = $this->exceptionConverter->convert($driverException, $query);
if ($exception instanceof ConnectionLost) {
$this->close();
}
in
vendor/doctrine/dbal/src/Connection.php
->
handleDriverException
(line 1891)
}
/** @internal */
final public function convertException(Driver\Exception $e): DriverException
{
return $this->handleDriverException($e, null);
}
/**
* @param array<int, mixed>|array<string, mixed> $params
* @param array<int, int|string|Type|null>|array<string, int|string|Type|null> $types
in
vendor/doctrine/dbal/src/Connection.php
->
convertException
(line 380)
}
try {
$this->_conn = $this->_driver->connect($this->params);
} catch (Driver\Exception $e) {
throw $this->convertException($e);
}
if ($this->autoCommit === false) {
$this->beginTransaction();
}
in
vendor/doctrine/dbal/src/Connection.php
->
connect
(line 1659)
'https://github.com/doctrine/dbal/issues/4966',
'Connection::getWrappedConnection() is deprecated.'
. ' Use Connection::getNativeConnection() to access the native connection.',
);
$this->connect();
return $this->_conn;
}
/** @return resource|object */
in
vendor/doctrine/dbal/src/Connection.php
->
getWrappedConnection
(line 1082)
): Result {
if ($qcp !== null) {
return $this->executeCacheQuery($sql, $params, $types, $qcp);
}
$connection = $this->getWrappedConnection();
$logger = $this->_config->getSQLLogger();
if ($logger !== null) {
$logger->startQuery($sql, $params, $types);
}
in
vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php
->
executeQuery
(line 776)
{
$this->switchPersisterContext(null, $limit);
$sql = $this->getSelectSQL($criteria, $assoc, $lockMode, $limit, null, $orderBy);
[$params, $types] = $this->expandParameters($criteria);
$stmt = $this->conn->executeQuery($sql, $params, $types);
if ($entity !== null) {
$hints[Query::HINT_REFRESH] = true;
$hints[Query::HINT_REFRESH_ENTITY] = $entity;
}
in
vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php
->
load
(line 794)
/**
* {@inheritDoc}
*/
public function loadById(array $identifier, $entity = null)
{
return $this->load($identifier, $entity);
}
/**
* {@inheritDoc}
*/
in
vendor/doctrine/orm/src/EntityManager.php
->
loadById
(line 521)
case $lockMode === LockMode::PESSIMISTIC_READ:
case $lockMode === LockMode::PESSIMISTIC_WRITE:
return $persister->load($sortedId, null, null, [], $lockMode);
default:
return $persister->loadById($sortedId);
}
}
/**
* {@inheritDoc}
in
var/cache/dev/ContainerBykbw1h/EntityManager_9a5be93.php
->
find
(line 143)
public function find($className, $id, $lockMode = null, $lockVersion = null)
{
$this->initializer272b7 && ($this->initializer272b7->__invoke($valueHolderf992b, $this, 'find', array('className' => $className, 'id' => $id, 'lockMode' => $lockMode, 'lockVersion' => $lockVersion), $this->initializer272b7) || 1) && $this->valueHolderf992b = $valueHolderf992b;
return $this->valueHolderf992b->find($className, $id, $lockMode, $lockVersion);
}
public function getReference($entityName, $id)
{
$this->initializer272b7 && ($this->initializer272b7->__invoke($valueHolderf992b, $this, 'getReference', array('entityName' => $entityName, 'id' => $id), $this->initializer272b7) || 1) && $this->valueHolderf992b = $valueHolderf992b;
in
vendor/doctrine/orm/src/EntityRepository.php
->
find
(line 197)
* @return object|null The entity instance or NULL if the entity can not be found.
* @psalm-return ?T
*/
public function find($id, $lockMode = null, $lockVersion = null)
{
return $this->_em->find($this->_entityName, $id, $lockMode, $lockVersion);
}
/**
* Finds all entities in the repository.
*
in
vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php
->
find
(line 142)
$cacheProvider->evictEntity($class, $id);
}
}
try {
return $om->getRepository($class)->$method($id);
} catch (NoResultException $e) {
return;
} catch (ConversionException $e) {
return;
}
in
vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php
->
find
(line 91)
if (null === $object) {
$errorMessage = sprintf('The expression "%s" returned null', $expr);
}
// find by identifier?
} elseif (false === $object = $this->find($class, $request, $options, $name)) {
// find by criteria
if (false === $object = $this->findOneBy($class, $request, $options)) {
if ($configuration->isOptional()) {
$object = null;
} else {
in
vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/ParamConverterManager.php
->
apply
(line 84)
return;
}
foreach ($this->all() as $converter) {
if ($converter->supports($configuration)) {
if ($converter->apply($request, $configuration)) {
return;
}
}
}
}
in
vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/ParamConverterManager.php
->
applyConverter
(line 48)
if (\is_object($configurations)) {
$configurations = [$configurations];
}
foreach ($configurations as $configuration) {
$this->applyConverter($request, $configuration);
}
}
/**
* Applies converter on request based on the given configuration.
in
vendor/sensio/framework-extra-bundle/src/EventListener/ParamConverterListener.php
->
apply
(line 72)
}
$configurations = $this->autoConfigure($r, $request, $configurations);
}
$this->manager->apply($request, $configurations);
}
private function autoConfigure(\ReflectionFunctionAbstract $r, Request $request, $configurations)
{
foreach ($r->getParameters() as $param) {
in
vendor/symfony/event-dispatcher/Debug/WrappedListener.php
->
onKernelController
(line 118)
$this->priority = $dispatcher->getListenerPriority($eventName, $this->listener);
$e = $this->stopwatch->start($this->name, 'event_listener');
try {
($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);
} finally {
if ($e->isStarted()) {
$e->stop();
}
}
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
__invoke
(line 230)
foreach ($listeners as $listener) {
if ($stoppable && $event->isPropagationStopped()) {
break;
}
$listener($event, $eventName, $this);
}
}
/**
* Sorts the internal list of listeners for the given event by priority.
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
callListeners
(line 59)
} else {
$listeners = $this->getListeners($eventName);
}
if ($listeners) {
$this->callListeners($listeners, $eventName, $event);
}
return $event;
}
in
vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php
->
dispatch
(line 154)
try {
$this->beforeDispatch($eventName, $event);
try {
$e = $this->stopwatch->start($eventName, 'section');
try {
$this->dispatcher->dispatch($event, $eventName);
} finally {
if ($e->isStarted()) {
$e->stop();
}
}
in
vendor/symfony/http-kernel/HttpKernel.php
->
dispatch
(line 151)
if (false === $controller = $this->resolver->getController($request)) {
throw new NotFoundHttpException(sprintf('Unable to find the controller for path "%s". The route is wrongly configured.', $request->getPathInfo()));
}
$event = new ControllerEvent($this, $controller, $request, $type);
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER);
$controller = $event->getController();
// controller arguments
$arguments = $this->argumentResolver->getArguments($request, $controller);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 202)
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
in
vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php
->
handle
(line 35)
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
in
vendor/autoload_runtime.php
->
run
(line 35)
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
<?php
use App\Kernel;
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
Doctrine\DBAL\Driver\PDO\ Exception
in
vendor/doctrine/dbal/src/Driver/PDO/Exception.php
(line 28)
} else {
$code = $exception->getCode();
$sqlState = null;
}
return new self($exception->getMessage(), $sqlState, $code, $exception);
}
}
in
vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php
::
new
(line 40)
$params['user'] ?? '',
$params['password'] ?? '',
$driverOptions,
);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
return new Connection($pdo);
}
in
vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php
->
connect
(line 29)
*/
public function connect(
#[SensitiveParameter]
array $params
) {
return $this->wrappedDriver->connect($params);
}
/**
* {@inheritDoc}
*/
in
vendor/symfony/doctrine-bridge/Middleware/Debug/Driver.php
->
connect
(line 41)
$this->connectionName = $connectionName;
}
public function connect(array $params): ConnectionInterface
{
$connection = parent::connect($params);
if ('void' !== (string) (new \ReflectionMethod(DriverInterface\Connection::class, 'commit'))->getReturnType()) {
return new DBAL3\Connection(
$connection,
$this->debugDataHolder,
in
vendor/doctrine/dbal/src/Connection.php
->
connect
(line 378)
if ($this->_conn !== null) {
return false;
}
try {
$this->_conn = $this->_driver->connect($this->params);
} catch (Driver\Exception $e) {
throw $this->convertException($e);
}
if ($this->autoCommit === false) {
in
vendor/doctrine/dbal/src/Connection.php
->
connect
(line 1659)
'https://github.com/doctrine/dbal/issues/4966',
'Connection::getWrappedConnection() is deprecated.'
. ' Use Connection::getNativeConnection() to access the native connection.',
);
$this->connect();
return $this->_conn;
}
/** @return resource|object */
in
vendor/doctrine/dbal/src/Connection.php
->
getWrappedConnection
(line 1082)
): Result {
if ($qcp !== null) {
return $this->executeCacheQuery($sql, $params, $types, $qcp);
}
$connection = $this->getWrappedConnection();
$logger = $this->_config->getSQLLogger();
if ($logger !== null) {
$logger->startQuery($sql, $params, $types);
}
in
vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php
->
executeQuery
(line 776)
{
$this->switchPersisterContext(null, $limit);
$sql = $this->getSelectSQL($criteria, $assoc, $lockMode, $limit, null, $orderBy);
[$params, $types] = $this->expandParameters($criteria);
$stmt = $this->conn->executeQuery($sql, $params, $types);
if ($entity !== null) {
$hints[Query::HINT_REFRESH] = true;
$hints[Query::HINT_REFRESH_ENTITY] = $entity;
}
in
vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php
->
load
(line 794)
/**
* {@inheritDoc}
*/
public function loadById(array $identifier, $entity = null)
{
return $this->load($identifier, $entity);
}
/**
* {@inheritDoc}
*/
in
vendor/doctrine/orm/src/EntityManager.php
->
loadById
(line 521)
case $lockMode === LockMode::PESSIMISTIC_READ:
case $lockMode === LockMode::PESSIMISTIC_WRITE:
return $persister->load($sortedId, null, null, [], $lockMode);
default:
return $persister->loadById($sortedId);
}
}
/**
* {@inheritDoc}
in
var/cache/dev/ContainerBykbw1h/EntityManager_9a5be93.php
->
find
(line 143)
public function find($className, $id, $lockMode = null, $lockVersion = null)
{
$this->initializer272b7 && ($this->initializer272b7->__invoke($valueHolderf992b, $this, 'find', array('className' => $className, 'id' => $id, 'lockMode' => $lockMode, 'lockVersion' => $lockVersion), $this->initializer272b7) || 1) && $this->valueHolderf992b = $valueHolderf992b;
return $this->valueHolderf992b->find($className, $id, $lockMode, $lockVersion);
}
public function getReference($entityName, $id)
{
$this->initializer272b7 && ($this->initializer272b7->__invoke($valueHolderf992b, $this, 'getReference', array('entityName' => $entityName, 'id' => $id), $this->initializer272b7) || 1) && $this->valueHolderf992b = $valueHolderf992b;
in
vendor/doctrine/orm/src/EntityRepository.php
->
find
(line 197)
* @return object|null The entity instance or NULL if the entity can not be found.
* @psalm-return ?T
*/
public function find($id, $lockMode = null, $lockVersion = null)
{
return $this->_em->find($this->_entityName, $id, $lockMode, $lockVersion);
}
/**
* Finds all entities in the repository.
*
in
vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php
->
find
(line 142)
$cacheProvider->evictEntity($class, $id);
}
}
try {
return $om->getRepository($class)->$method($id);
} catch (NoResultException $e) {
return;
} catch (ConversionException $e) {
return;
}
in
vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php
->
find
(line 91)
if (null === $object) {
$errorMessage = sprintf('The expression "%s" returned null', $expr);
}
// find by identifier?
} elseif (false === $object = $this->find($class, $request, $options, $name)) {
// find by criteria
if (false === $object = $this->findOneBy($class, $request, $options)) {
if ($configuration->isOptional()) {
$object = null;
} else {
in
vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/ParamConverterManager.php
->
apply
(line 84)
return;
}
foreach ($this->all() as $converter) {
if ($converter->supports($configuration)) {
if ($converter->apply($request, $configuration)) {
return;
}
}
}
}
in
vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/ParamConverterManager.php
->
applyConverter
(line 48)
if (\is_object($configurations)) {
$configurations = [$configurations];
}
foreach ($configurations as $configuration) {
$this->applyConverter($request, $configuration);
}
}
/**
* Applies converter on request based on the given configuration.
in
vendor/sensio/framework-extra-bundle/src/EventListener/ParamConverterListener.php
->
apply
(line 72)
}
$configurations = $this->autoConfigure($r, $request, $configurations);
}
$this->manager->apply($request, $configurations);
}
private function autoConfigure(\ReflectionFunctionAbstract $r, Request $request, $configurations)
{
foreach ($r->getParameters() as $param) {
in
vendor/symfony/event-dispatcher/Debug/WrappedListener.php
->
onKernelController
(line 118)
$this->priority = $dispatcher->getListenerPriority($eventName, $this->listener);
$e = $this->stopwatch->start($this->name, 'event_listener');
try {
($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);
} finally {
if ($e->isStarted()) {
$e->stop();
}
}
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
__invoke
(line 230)
foreach ($listeners as $listener) {
if ($stoppable && $event->isPropagationStopped()) {
break;
}
$listener($event, $eventName, $this);
}
}
/**
* Sorts the internal list of listeners for the given event by priority.
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
callListeners
(line 59)
} else {
$listeners = $this->getListeners($eventName);
}
if ($listeners) {
$this->callListeners($listeners, $eventName, $event);
}
return $event;
}
in
vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php
->
dispatch
(line 154)
try {
$this->beforeDispatch($eventName, $event);
try {
$e = $this->stopwatch->start($eventName, 'section');
try {
$this->dispatcher->dispatch($event, $eventName);
} finally {
if ($e->isStarted()) {
$e->stop();
}
}
in
vendor/symfony/http-kernel/HttpKernel.php
->
dispatch
(line 151)
if (false === $controller = $this->resolver->getController($request)) {
throw new NotFoundHttpException(sprintf('Unable to find the controller for path "%s". The route is wrongly configured.', $request->getPathInfo()));
}
$event = new ControllerEvent($this, $controller, $request, $type);
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER);
$controller = $event->getController();
// controller arguments
$arguments = $this->argumentResolver->getArguments($request, $controller);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 202)
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
in
vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php
->
handle
(line 35)
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
in
vendor/autoload_runtime.php
->
run
(line 35)
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
<?php
use App\Kernel;
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
PDOException
in
vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php
(line 34)
$safeParams = $params;
unset($safeParams['password'], $safeParams['url']);
try {
$pdo = new PDO(
$this->constructPdoDsn($safeParams),
$params['user'] ?? '',
$params['password'] ?? '',
$driverOptions,
);
} catch (PDOException $exception) {
in
vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php
->
__construct
(line 34)
$safeParams = $params;
unset($safeParams['password'], $safeParams['url']);
try {
$pdo = new PDO(
$this->constructPdoDsn($safeParams),
$params['user'] ?? '',
$params['password'] ?? '',
$driverOptions,
);
} catch (PDOException $exception) {
in
vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php
->
connect
(line 29)
*/
public function connect(
#[SensitiveParameter]
array $params
) {
return $this->wrappedDriver->connect($params);
}
/**
* {@inheritDoc}
*/
in
vendor/symfony/doctrine-bridge/Middleware/Debug/Driver.php
->
connect
(line 41)
$this->connectionName = $connectionName;
}
public function connect(array $params): ConnectionInterface
{
$connection = parent::connect($params);
if ('void' !== (string) (new \ReflectionMethod(DriverInterface\Connection::class, 'commit'))->getReturnType()) {
return new DBAL3\Connection(
$connection,
$this->debugDataHolder,
in
vendor/doctrine/dbal/src/Connection.php
->
connect
(line 378)
if ($this->_conn !== null) {
return false;
}
try {
$this->_conn = $this->_driver->connect($this->params);
} catch (Driver\Exception $e) {
throw $this->convertException($e);
}
if ($this->autoCommit === false) {
in
vendor/doctrine/dbal/src/Connection.php
->
connect
(line 1659)
'https://github.com/doctrine/dbal/issues/4966',
'Connection::getWrappedConnection() is deprecated.'
. ' Use Connection::getNativeConnection() to access the native connection.',
);
$this->connect();
return $this->_conn;
}
/** @return resource|object */
in
vendor/doctrine/dbal/src/Connection.php
->
getWrappedConnection
(line 1082)
): Result {
if ($qcp !== null) {
return $this->executeCacheQuery($sql, $params, $types, $qcp);
}
$connection = $this->getWrappedConnection();
$logger = $this->_config->getSQLLogger();
if ($logger !== null) {
$logger->startQuery($sql, $params, $types);
}
in
vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php
->
executeQuery
(line 776)
{
$this->switchPersisterContext(null, $limit);
$sql = $this->getSelectSQL($criteria, $assoc, $lockMode, $limit, null, $orderBy);
[$params, $types] = $this->expandParameters($criteria);
$stmt = $this->conn->executeQuery($sql, $params, $types);
if ($entity !== null) {
$hints[Query::HINT_REFRESH] = true;
$hints[Query::HINT_REFRESH_ENTITY] = $entity;
}
in
vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php
->
load
(line 794)
/**
* {@inheritDoc}
*/
public function loadById(array $identifier, $entity = null)
{
return $this->load($identifier, $entity);
}
/**
* {@inheritDoc}
*/
in
vendor/doctrine/orm/src/EntityManager.php
->
loadById
(line 521)
case $lockMode === LockMode::PESSIMISTIC_READ:
case $lockMode === LockMode::PESSIMISTIC_WRITE:
return $persister->load($sortedId, null, null, [], $lockMode);
default:
return $persister->loadById($sortedId);
}
}
/**
* {@inheritDoc}
in
var/cache/dev/ContainerBykbw1h/EntityManager_9a5be93.php
->
find
(line 143)
public function find($className, $id, $lockMode = null, $lockVersion = null)
{
$this->initializer272b7 && ($this->initializer272b7->__invoke($valueHolderf992b, $this, 'find', array('className' => $className, 'id' => $id, 'lockMode' => $lockMode, 'lockVersion' => $lockVersion), $this->initializer272b7) || 1) && $this->valueHolderf992b = $valueHolderf992b;
return $this->valueHolderf992b->find($className, $id, $lockMode, $lockVersion);
}
public function getReference($entityName, $id)
{
$this->initializer272b7 && ($this->initializer272b7->__invoke($valueHolderf992b, $this, 'getReference', array('entityName' => $entityName, 'id' => $id), $this->initializer272b7) || 1) && $this->valueHolderf992b = $valueHolderf992b;
in
vendor/doctrine/orm/src/EntityRepository.php
->
find
(line 197)
* @return object|null The entity instance or NULL if the entity can not be found.
* @psalm-return ?T
*/
public function find($id, $lockMode = null, $lockVersion = null)
{
return $this->_em->find($this->_entityName, $id, $lockMode, $lockVersion);
}
/**
* Finds all entities in the repository.
*
in
vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php
->
find
(line 142)
$cacheProvider->evictEntity($class, $id);
}
}
try {
return $om->getRepository($class)->$method($id);
} catch (NoResultException $e) {
return;
} catch (ConversionException $e) {
return;
}
in
vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php
->
find
(line 91)
if (null === $object) {
$errorMessage = sprintf('The expression "%s" returned null', $expr);
}
// find by identifier?
} elseif (false === $object = $this->find($class, $request, $options, $name)) {
// find by criteria
if (false === $object = $this->findOneBy($class, $request, $options)) {
if ($configuration->isOptional()) {
$object = null;
} else {
in
vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/ParamConverterManager.php
->
apply
(line 84)
return;
}
foreach ($this->all() as $converter) {
if ($converter->supports($configuration)) {
if ($converter->apply($request, $configuration)) {
return;
}
}
}
}
in
vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/ParamConverterManager.php
->
applyConverter
(line 48)
if (\is_object($configurations)) {
$configurations = [$configurations];
}
foreach ($configurations as $configuration) {
$this->applyConverter($request, $configuration);
}
}
/**
* Applies converter on request based on the given configuration.
in
vendor/sensio/framework-extra-bundle/src/EventListener/ParamConverterListener.php
->
apply
(line 72)
}
$configurations = $this->autoConfigure($r, $request, $configurations);
}
$this->manager->apply($request, $configurations);
}
private function autoConfigure(\ReflectionFunctionAbstract $r, Request $request, $configurations)
{
foreach ($r->getParameters() as $param) {
in
vendor/symfony/event-dispatcher/Debug/WrappedListener.php
->
onKernelController
(line 118)
$this->priority = $dispatcher->getListenerPriority($eventName, $this->listener);
$e = $this->stopwatch->start($this->name, 'event_listener');
try {
($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);
} finally {
if ($e->isStarted()) {
$e->stop();
}
}
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
__invoke
(line 230)
foreach ($listeners as $listener) {
if ($stoppable && $event->isPropagationStopped()) {
break;
}
$listener($event, $eventName, $this);
}
}
/**
* Sorts the internal list of listeners for the given event by priority.
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
callListeners
(line 59)
} else {
$listeners = $this->getListeners($eventName);
}
if ($listeners) {
$this->callListeners($listeners, $eventName, $event);
}
return $event;
}
in
vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php
->
dispatch
(line 154)
try {
$this->beforeDispatch($eventName, $event);
try {
$e = $this->stopwatch->start($eventName, 'section');
try {
$this->dispatcher->dispatch($event, $eventName);
} finally {
if ($e->isStarted()) {
$e->stop();
}
}
in
vendor/symfony/http-kernel/HttpKernel.php
->
dispatch
(line 151)
if (false === $controller = $this->resolver->getController($request)) {
throw new NotFoundHttpException(sprintf('Unable to find the controller for path "%s". The route is wrongly configured.', $request->getPathInfo()));
}
$event = new ControllerEvent($this, $controller, $request, $type);
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER);
$controller = $event->getController();
// controller arguments
$arguments = $this->argumentResolver->getArguments($request, $controller);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 202)
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
in
vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php
->
handle
(line 35)
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
in
vendor/autoload_runtime.php
->
run
(line 35)
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
<?php
use App\Kernel;
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
Stack Traces 3
[3/3]
DriverException
|
---|
Doctrine\DBAL\Exception\DriverException: An exception occurred in the driver: SQLSTATE[08004] [1040] Too many connections at vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php:117 at Doctrine\DBAL\Driver\API\MySQL\ExceptionConverter->convert() (vendor/doctrine/dbal/src/Connection.php:1943) at Doctrine\DBAL\Connection->handleDriverException() (vendor/doctrine/dbal/src/Connection.php:1891) at Doctrine\DBAL\Connection->convertException() (vendor/doctrine/dbal/src/Connection.php:380) at Doctrine\DBAL\Connection->connect() (vendor/doctrine/dbal/src/Connection.php:1659) at Doctrine\DBAL\Connection->getWrappedConnection() (vendor/doctrine/dbal/src/Connection.php:1082) at Doctrine\DBAL\Connection->executeQuery() (vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:776) at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->load() (vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:794) at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadById() (vendor/doctrine/orm/src/EntityManager.php:521) at Doctrine\ORM\EntityManager->find() (var/cache/dev/ContainerBykbw1h/EntityManager_9a5be93.php:143) at ContainerBykbw1h\EntityManager_9a5be93->find() (vendor/doctrine/orm/src/EntityRepository.php:197) at Doctrine\ORM\EntityRepository->find() (vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php:142) at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter->find() (vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php:91) at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter->apply() (vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/ParamConverterManager.php:84) at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterManager->applyConverter() (vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/ParamConverterManager.php:48) at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterManager->apply() (vendor/sensio/framework-extra-bundle/src/EventListener/ParamConverterListener.php:72) at Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener->onKernelController() (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:118) at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke() (vendor/symfony/event-dispatcher/EventDispatcher.php:230) at Symfony\Component\EventDispatcher\EventDispatcher->callListeners() (vendor/symfony/event-dispatcher/EventDispatcher.php:59) at Symfony\Component\EventDispatcher\EventDispatcher->dispatch() (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154) at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch() (vendor/symfony/http-kernel/HttpKernel.php:151) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:75) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:202) at Symfony\Component\HttpKernel\Kernel->handle() (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35) at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() (vendor/autoload_runtime.php:35) at require_once('/home/projects/pms/vendor/autoload_runtime.php') (public/index.php:5) |
[2/3]
Exception
|
---|
Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[08004] [1040] Too many connections at vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28 at Doctrine\DBAL\Driver\PDO\Exception::new() (vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php:40) at Doctrine\DBAL\Driver\PDO\MySQL\Driver->connect() (vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php:29) at Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware->connect() (vendor/symfony/doctrine-bridge/Middleware/Debug/Driver.php:41) at Symfony\Bridge\Doctrine\Middleware\Debug\Driver->connect() (vendor/doctrine/dbal/src/Connection.php:378) at Doctrine\DBAL\Connection->connect() (vendor/doctrine/dbal/src/Connection.php:1659) at Doctrine\DBAL\Connection->getWrappedConnection() (vendor/doctrine/dbal/src/Connection.php:1082) at Doctrine\DBAL\Connection->executeQuery() (vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:776) at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->load() (vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:794) at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadById() (vendor/doctrine/orm/src/EntityManager.php:521) at Doctrine\ORM\EntityManager->find() (var/cache/dev/ContainerBykbw1h/EntityManager_9a5be93.php:143) at ContainerBykbw1h\EntityManager_9a5be93->find() (vendor/doctrine/orm/src/EntityRepository.php:197) at Doctrine\ORM\EntityRepository->find() (vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php:142) at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter->find() (vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php:91) at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter->apply() (vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/ParamConverterManager.php:84) at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterManager->applyConverter() (vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/ParamConverterManager.php:48) at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterManager->apply() (vendor/sensio/framework-extra-bundle/src/EventListener/ParamConverterListener.php:72) at Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener->onKernelController() (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:118) at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke() (vendor/symfony/event-dispatcher/EventDispatcher.php:230) at Symfony\Component\EventDispatcher\EventDispatcher->callListeners() (vendor/symfony/event-dispatcher/EventDispatcher.php:59) at Symfony\Component\EventDispatcher\EventDispatcher->dispatch() (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154) at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch() (vendor/symfony/http-kernel/HttpKernel.php:151) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:75) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:202) at Symfony\Component\HttpKernel\Kernel->handle() (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35) at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() (vendor/autoload_runtime.php:35) at require_once('/home/projects/pms/vendor/autoload_runtime.php') (public/index.php:5) |
[1/3]
PDOException
|
---|
PDOException: SQLSTATE[08004] [1040] Too many connections at vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php:34 at PDO->__construct() (vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php:34) at Doctrine\DBAL\Driver\PDO\MySQL\Driver->connect() (vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php:29) at Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware->connect() (vendor/symfony/doctrine-bridge/Middleware/Debug/Driver.php:41) at Symfony\Bridge\Doctrine\Middleware\Debug\Driver->connect() (vendor/doctrine/dbal/src/Connection.php:378) at Doctrine\DBAL\Connection->connect() (vendor/doctrine/dbal/src/Connection.php:1659) at Doctrine\DBAL\Connection->getWrappedConnection() (vendor/doctrine/dbal/src/Connection.php:1082) at Doctrine\DBAL\Connection->executeQuery() (vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:776) at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->load() (vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:794) at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadById() (vendor/doctrine/orm/src/EntityManager.php:521) at Doctrine\ORM\EntityManager->find() (var/cache/dev/ContainerBykbw1h/EntityManager_9a5be93.php:143) at ContainerBykbw1h\EntityManager_9a5be93->find() (vendor/doctrine/orm/src/EntityRepository.php:197) at Doctrine\ORM\EntityRepository->find() (vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php:142) at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter->find() (vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php:91) at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter->apply() (vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/ParamConverterManager.php:84) at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterManager->applyConverter() (vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/ParamConverterManager.php:48) at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterManager->apply() (vendor/sensio/framework-extra-bundle/src/EventListener/ParamConverterListener.php:72) at Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener->onKernelController() (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:118) at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke() (vendor/symfony/event-dispatcher/EventDispatcher.php:230) at Symfony\Component\EventDispatcher\EventDispatcher->callListeners() (vendor/symfony/event-dispatcher/EventDispatcher.php:59) at Symfony\Component\EventDispatcher\EventDispatcher->dispatch() (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154) at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch() (vendor/symfony/http-kernel/HttpKernel.php:151) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:75) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:202) at Symfony\Component\HttpKernel\Kernel->handle() (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35) at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() (vendor/autoload_runtime.php:35) at require_once('/home/projects/pms/vendor/autoload_runtime.php') (public/index.php:5) |