return new UniqueConstraintViolationException($message, $exception);
case '1054':
case '1166':
case '1611':
return new InvalidFieldNameException($message, $exception);
case '1052':
case '1060':
case '1110':
return new NonUniqueFieldNameException($message, $exception);
if ($driverEx instanceof DriverException) {
return $driverEx;
}
if ($driver instanceof ExceptionConverterDriver && $driverEx instanceof DeprecatedDriverException) {
return $driver->convertException($msg, $driverEx);
}
return new Exception($msg, 0, $driverEx);
}
$msg .= ' with params ' . self::formatParameters($params);
}
$msg .= ":\n\n" . $driverEx->getMessage();
return self::wrapException($driver, $driverEx, $msg);
}
/**
* @deprecated
*
* @throws Exception
*/
public function handleExceptionDuringQuery(Throwable $e, string $sql, array $params = [], array $types = []): void
{
$this->throw(
Exception::driverExceptionDuringQuery(
$this->_driver,
$e,
$sql,
$this->resolveParams($params, $types)
)
}
} else {
$stmt = $connection->query($sql);
}
} catch (Throwable $e) {
$this->handleExceptionDuringQuery(
$e,
$sql,
$params,
$types
);
*/
public function executeQuery($query, array $params = [], $types = [], QueryCacheProfile $qcp = null)
{
list($query, $params) = $this->normalizeQuery($query, $params);
return parent::executeQuery($query, $params, $types, $qcp);
}
/**
* @deprecated
* @see \Doctrine\DBAL\Connection::executeUpdate
*/
public function fetchAssociative(string $query, array $params = [], array $types = [])
{
try {
$stmt = $this->ensureForwardCompatibilityStatement(
$this->executeQuery($query, $params, $types)
);
return $stmt->fetchAssociative();
} catch (Throwable $e) {
$this->handleExceptionDuringQuery($e, $query, $params, $types);
* @throws Model\Exception\NotFoundException
*/
public function getByPath($path)
{
$params = $this->extractKeyAndPath($path);
$data = $this->db->fetchAssociative('SELECT o_id FROM objects WHERE o_path = :path AND `o_key` = :key', $params);
if (!empty($data['o_id'])) {
$this->assignVariablesToModel($data);
} else {
throw new Model\Exception\NotFoundException("object doesn't exist");
$path = Model\Element\Service::correctPath($path);
try {
$object = new static();
$object->getDao()->getByPath($path);
return static::getById($object->getId(), Model\Element\Service::prepareGetByIdParams($force, __METHOD__, func_num_args() > 1));
} catch (Model\Exception\NotFoundException $e) {
return null;
}
{
$this->configuration = $configuration;
$this->classManager = $classManager;
$storagePath = $configuration->getConfig('storage_path');
if (($membersStoreObject = DataObject::getByPath($storagePath)) instanceof DataObject\Folder) {
$this->memberStorageId = $membersStoreObject->getId();
}
}
public function getClass(): string
if (isset($container->privates['MembersBundle\\Manager\\UserManager'])) {
return $container->privates['MembersBundle\\Manager\\UserManager'];
}
return $container->privates['MembersBundle\\Manager\\UserManager'] = new \MembersBundle\Manager\UserManager($a, $b);
}
}
$file .= '.php';
}
$service = require $this->containerDir.\DIRECTORY_SEPARATOR.$file;
return class_exists($class, false) ? $class::do($this, $lazyLoad) : $service;
}
protected function createProxy($class, \Closure $factory)
{
class_exists($class, false) || require __DIR__.'/'.$class.'.php';
public static function do($container, $lazyLoad = true)
{
include_once \dirname(__DIR__, 4).'/vendor/symfony/security-core/User/UserProviderInterface.php';
include_once \dirname(__DIR__, 4).'/vendor/dachcom-digital/members/src/MembersBundle/Security/UserProvider.php';
$a = ($container->privates['MembersBundle\\Manager\\UserManager'] ?? $container->load('getUserManagerService'));
if (isset($container->privates['MembersBundle\\Security\\UserProvider'])) {
return $container->privates['MembersBundle\\Security\\UserProvider'];
}
$file .= '.php';
}
$service = require $this->containerDir.\DIRECTORY_SEPARATOR.$file;
return class_exists($class, false) ? $class::do($this, $lazyLoad) : $service;
}
protected function createProxy($class, \Closure $factory)
{
class_exists($class, false) || require __DIR__.'/'.$class.'.php';
include_once \dirname(__DIR__, 4).'/vendor/symfony/security-http/Util/TargetPathTrait.php';
include_once \dirname(__DIR__, 4).'/vendor/symfony/security-http/Authentication/DefaultAuthenticationSuccessHandler.php';
include_once \dirname(__DIR__, 4).'/vendor/symfony/security-http/Authentication/AuthenticationFailureHandlerInterface.php';
include_once \dirname(__DIR__, 4).'/vendor/symfony/security-http/Authentication/DefaultAuthenticationFailureHandler.php';
$a = ($container->privates['MembersBundle\\Security\\UserProvider'] ?? $container->load('getUserProviderService'));
if (isset($container->privates['security.authenticator.form_login.members_fe'])) {
return $container->privates['security.authenticator.form_login.members_fe'];
}
$b = ($container->services['http_kernel'] ?? $container->getHttpKernelService());
$file .= '.php';
}
$service = require $this->containerDir.\DIRECTORY_SEPARATOR.$file;
return class_exists($class, false) ? $class::do($this, $lazyLoad) : $service;
}
protected function createProxy($class, \Closure $factory)
{
class_exists($class, false) || require __DIR__.'/'.$class.'.php';
include_once \dirname(__DIR__, 4).'/vendor/symfony/security-http/Util/TargetPathTrait.php';
include_once \dirname(__DIR__, 4).'/vendor/symfony/security-http/Firewall/ExceptionListener.php';
include_once \dirname(__DIR__, 4).'/vendor/symfony/security-http/Firewall/LogoutListener.php';
include_once \dirname(__DIR__, 4).'/vendor/symfony/security-bundle/Security/FirewallConfig.php';
$a = ($container->privates['security.authenticator.form_login.members_fe'] ?? $container->load('getSecurity_Authenticator_FormLogin_MembersFeService'));
if (isset($container->privates['security.firewall.map.context.members_fe'])) {
return $container->privates['security.firewall.map.context.members_fe'];
}
$b = ($container->privates['security.event_dispatcher.members_fe'] ?? $container->getSecurity_EventDispatcher_MembersFeService());
$file .= '.php';
}
$service = require $this->containerDir.\DIRECTORY_SEPARATOR.$file;
return class_exists($class, false) ? $class::do($this, $lazyLoad) : $service;
}
protected function createProxy($class, \Closure $factory)
{
class_exists($class, false) || require __DIR__.'/'.$class.'.php';
}
if (null === $method) {
return false !== $registry ? $this->{$registry}[$id] ?? null : null;
}
if (false !== $registry) {
return $this->{$registry}[$id] ?? $this->{$registry}[$id] = $load ? $this->load($method) : $this->{$method}();
}
if (!$load) {
return $this->{$method}();
}
*
* @return mixed
*/
public function get(string $id)
{
return isset($this->serviceMap[$id]) ? ($this->factory)(...$this->serviceMap[$id]) : parent::get($id);
}
/**
* {@inheritdoc}
*/
foreach ($this->map as $contextId => $requestMatcher) {
if (null === $requestMatcher || $requestMatcher->matches($request)) {
$request->attributes->set('_firewall_context', $contextId);
return $this->container->get($contextId);
}
}
return null;
}
/**
* @return FirewallConfig|null
*/
public function getFirewallConfig(Request $request)
{
$context = $this->getFirewallContext($request);
if (null === $context) {
return null;
}
{
if (!$event->isMainRequest()) {
return;
}
if ($this->map instanceof FirewallMap && $config = $this->map->getFirewallConfig($event->getRequest())) {
$this->logoutUrlGenerator->setCurrentFirewall($config->getName(), $config->getContext());
}
}
public function onKernelFinishRequest(FinishRequestEvent $event)
$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();
}
}
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.
} else {
$listeners = $this->getListeners($eventName);
}
if ($listeners) {
$this->callListeners($listeners, $eventName, $event);
}
return $event;
}
try {
$this->beforeDispatch($eventName, $event);
try {
$e = $this->stopwatch->start($eventName, 'section');
try {
$this->dispatcher->dispatch($event, $eventName);
} finally {
if ($e->isStarted()) {
$e->stop();
}
}
*/
private function handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response
{
// request
$event = new RequestEvent($this, $request, $type);
$this->dispatcher->dispatch($event, KernelEvents::REQUEST);
if ($event->hasResponse()) {
return $this->filterResponse($event->getResponse(), $request, $type);
}
{
$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) {
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$kernel = \Pimcore\Bootstrap::kernel();
// reset current request - will be read from request stack from now on
Tool::setCurrentRequest(null);
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
*/
final class Exception extends PDOException
{
public static function new(\PDOException $exception): self
{
return new self($exception);
}
}
public function execute($params = null)
{
try {
return parent::execute($params);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
}
/**
* {@inheritdoc}
[$sql, $params, $types] = SQLParserUtils::expandListParameters($sql, $params, $types);
$stmt = $connection->prepare($sql);
if ($types) {
$this->_bindTypedValues($stmt, $params, $types);
$stmt->execute();
} else {
$stmt->execute($params);
}
} else {
$stmt = $connection->query($sql);
*/
public function executeQuery($query, array $params = [], $types = [], QueryCacheProfile $qcp = null)
{
list($query, $params) = $this->normalizeQuery($query, $params);
return parent::executeQuery($query, $params, $types, $qcp);
}
/**
* @deprecated
* @see \Doctrine\DBAL\Connection::executeUpdate
*/
public function fetchAssociative(string $query, array $params = [], array $types = [])
{
try {
$stmt = $this->ensureForwardCompatibilityStatement(
$this->executeQuery($query, $params, $types)
);
return $stmt->fetchAssociative();
} catch (Throwable $e) {
$this->handleExceptionDuringQuery($e, $query, $params, $types);
* @throws Model\Exception\NotFoundException
*/
public function getByPath($path)
{
$params = $this->extractKeyAndPath($path);
$data = $this->db->fetchAssociative('SELECT o_id FROM objects WHERE o_path = :path AND `o_key` = :key', $params);
if (!empty($data['o_id'])) {
$this->assignVariablesToModel($data);
} else {
throw new Model\Exception\NotFoundException("object doesn't exist");
$path = Model\Element\Service::correctPath($path);
try {
$object = new static();
$object->getDao()->getByPath($path);
return static::getById($object->getId(), Model\Element\Service::prepareGetByIdParams($force, __METHOD__, func_num_args() > 1));
} catch (Model\Exception\NotFoundException $e) {
return null;
}
{
$this->configuration = $configuration;
$this->classManager = $classManager;
$storagePath = $configuration->getConfig('storage_path');
if (($membersStoreObject = DataObject::getByPath($storagePath)) instanceof DataObject\Folder) {
$this->memberStorageId = $membersStoreObject->getId();
}
}
public function getClass(): string
if (isset($container->privates['MembersBundle\\Manager\\UserManager'])) {
return $container->privates['MembersBundle\\Manager\\UserManager'];
}
return $container->privates['MembersBundle\\Manager\\UserManager'] = new \MembersBundle\Manager\UserManager($a, $b);
}
}
$file .= '.php';
}
$service = require $this->containerDir.\DIRECTORY_SEPARATOR.$file;
return class_exists($class, false) ? $class::do($this, $lazyLoad) : $service;
}
protected function createProxy($class, \Closure $factory)
{
class_exists($class, false) || require __DIR__.'/'.$class.'.php';
public static function do($container, $lazyLoad = true)
{
include_once \dirname(__DIR__, 4).'/vendor/symfony/security-core/User/UserProviderInterface.php';
include_once \dirname(__DIR__, 4).'/vendor/dachcom-digital/members/src/MembersBundle/Security/UserProvider.php';
$a = ($container->privates['MembersBundle\\Manager\\UserManager'] ?? $container->load('getUserManagerService'));
if (isset($container->privates['MembersBundle\\Security\\UserProvider'])) {
return $container->privates['MembersBundle\\Security\\UserProvider'];
}
$file .= '.php';
}
$service = require $this->containerDir.\DIRECTORY_SEPARATOR.$file;
return class_exists($class, false) ? $class::do($this, $lazyLoad) : $service;
}
protected function createProxy($class, \Closure $factory)
{
class_exists($class, false) || require __DIR__.'/'.$class.'.php';
include_once \dirname(__DIR__, 4).'/vendor/symfony/security-http/Util/TargetPathTrait.php';
include_once \dirname(__DIR__, 4).'/vendor/symfony/security-http/Authentication/DefaultAuthenticationSuccessHandler.php';
include_once \dirname(__DIR__, 4).'/vendor/symfony/security-http/Authentication/AuthenticationFailureHandlerInterface.php';
include_once \dirname(__DIR__, 4).'/vendor/symfony/security-http/Authentication/DefaultAuthenticationFailureHandler.php';
$a = ($container->privates['MembersBundle\\Security\\UserProvider'] ?? $container->load('getUserProviderService'));
if (isset($container->privates['security.authenticator.form_login.members_fe'])) {
return $container->privates['security.authenticator.form_login.members_fe'];
}
$b = ($container->services['http_kernel'] ?? $container->getHttpKernelService());
$file .= '.php';
}
$service = require $this->containerDir.\DIRECTORY_SEPARATOR.$file;
return class_exists($class, false) ? $class::do($this, $lazyLoad) : $service;
}
protected function createProxy($class, \Closure $factory)
{
class_exists($class, false) || require __DIR__.'/'.$class.'.php';
include_once \dirname(__DIR__, 4).'/vendor/symfony/security-http/Util/TargetPathTrait.php';
include_once \dirname(__DIR__, 4).'/vendor/symfony/security-http/Firewall/ExceptionListener.php';
include_once \dirname(__DIR__, 4).'/vendor/symfony/security-http/Firewall/LogoutListener.php';
include_once \dirname(__DIR__, 4).'/vendor/symfony/security-bundle/Security/FirewallConfig.php';
$a = ($container->privates['security.authenticator.form_login.members_fe'] ?? $container->load('getSecurity_Authenticator_FormLogin_MembersFeService'));
if (isset($container->privates['security.firewall.map.context.members_fe'])) {
return $container->privates['security.firewall.map.context.members_fe'];
}
$b = ($container->privates['security.event_dispatcher.members_fe'] ?? $container->getSecurity_EventDispatcher_MembersFeService());
$file .= '.php';
}
$service = require $this->containerDir.\DIRECTORY_SEPARATOR.$file;
return class_exists($class, false) ? $class::do($this, $lazyLoad) : $service;
}
protected function createProxy($class, \Closure $factory)
{
class_exists($class, false) || require __DIR__.'/'.$class.'.php';
}
if (null === $method) {
return false !== $registry ? $this->{$registry}[$id] ?? null : null;
}
if (false !== $registry) {
return $this->{$registry}[$id] ?? $this->{$registry}[$id] = $load ? $this->load($method) : $this->{$method}();
}
if (!$load) {
return $this->{$method}();
}
*
* @return mixed
*/
public function get(string $id)
{
return isset($this->serviceMap[$id]) ? ($this->factory)(...$this->serviceMap[$id]) : parent::get($id);
}
/**
* {@inheritdoc}
*/
foreach ($this->map as $contextId => $requestMatcher) {
if (null === $requestMatcher || $requestMatcher->matches($request)) {
$request->attributes->set('_firewall_context', $contextId);
return $this->container->get($contextId);
}
}
return null;
}
/**
* @return FirewallConfig|null
*/
public function getFirewallConfig(Request $request)
{
$context = $this->getFirewallContext($request);
if (null === $context) {
return null;
}
{
if (!$event->isMainRequest()) {
return;
}
if ($this->map instanceof FirewallMap && $config = $this->map->getFirewallConfig($event->getRequest())) {
$this->logoutUrlGenerator->setCurrentFirewall($config->getName(), $config->getContext());
}
}
public function onKernelFinishRequest(FinishRequestEvent $event)
$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();
}
}
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.
} else {
$listeners = $this->getListeners($eventName);
}
if ($listeners) {
$this->callListeners($listeners, $eventName, $event);
}
return $event;
}
try {
$this->beforeDispatch($eventName, $event);
try {
$e = $this->stopwatch->start($eventName, 'section');
try {
$this->dispatcher->dispatch($event, $eventName);
} finally {
if ($e->isStarted()) {
$e->stop();
}
}
*/
private function handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response
{
// request
$event = new RequestEvent($this, $request, $type);
$this->dispatcher->dispatch($event, KernelEvents::REQUEST);
if ($event->hasResponse()) {
return $this->filterResponse($event->getResponse(), $request, $type);
}
{
$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) {
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$kernel = \Pimcore\Bootstrap::kernel();
// reset current request - will be read from request stack from now on
Tool::setCurrentRequest(null);
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
*/
#[ReturnTypeWillChange]
public function execute($params = null)
{
try {
return parent::execute($params);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
}
*/
#[ReturnTypeWillChange]
public function execute($params = null)
{
try {
return parent::execute($params);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
}
[$sql, $params, $types] = SQLParserUtils::expandListParameters($sql, $params, $types);
$stmt = $connection->prepare($sql);
if ($types) {
$this->_bindTypedValues($stmt, $params, $types);
$stmt->execute();
} else {
$stmt->execute($params);
}
} else {
$stmt = $connection->query($sql);
*/
public function executeQuery($query, array $params = [], $types = [], QueryCacheProfile $qcp = null)
{
list($query, $params) = $this->normalizeQuery($query, $params);
return parent::executeQuery($query, $params, $types, $qcp);
}
/**
* @deprecated
* @see \Doctrine\DBAL\Connection::executeUpdate
*/
public function fetchAssociative(string $query, array $params = [], array $types = [])
{
try {
$stmt = $this->ensureForwardCompatibilityStatement(
$this->executeQuery($query, $params, $types)
);
return $stmt->fetchAssociative();
} catch (Throwable $e) {
$this->handleExceptionDuringQuery($e, $query, $params, $types);
* @throws Model\Exception\NotFoundException
*/
public function getByPath($path)
{
$params = $this->extractKeyAndPath($path);
$data = $this->db->fetchAssociative('SELECT o_id FROM objects WHERE o_path = :path AND `o_key` = :key', $params);
if (!empty($data['o_id'])) {
$this->assignVariablesToModel($data);
} else {
throw new Model\Exception\NotFoundException("object doesn't exist");
$path = Model\Element\Service::correctPath($path);
try {
$object = new static();
$object->getDao()->getByPath($path);
return static::getById($object->getId(), Model\Element\Service::prepareGetByIdParams($force, __METHOD__, func_num_args() > 1));
} catch (Model\Exception\NotFoundException $e) {
return null;
}
{
$this->configuration = $configuration;
$this->classManager = $classManager;
$storagePath = $configuration->getConfig('storage_path');
if (($membersStoreObject = DataObject::getByPath($storagePath)) instanceof DataObject\Folder) {
$this->memberStorageId = $membersStoreObject->getId();
}
}
public function getClass(): string
if (isset($container->privates['MembersBundle\\Manager\\UserManager'])) {
return $container->privates['MembersBundle\\Manager\\UserManager'];
}
return $container->privates['MembersBundle\\Manager\\UserManager'] = new \MembersBundle\Manager\UserManager($a, $b);
}
}
$file .= '.php';
}
$service = require $this->containerDir.\DIRECTORY_SEPARATOR.$file;
return class_exists($class, false) ? $class::do($this, $lazyLoad) : $service;
}
protected function createProxy($class, \Closure $factory)
{
class_exists($class, false) || require __DIR__.'/'.$class.'.php';
public static function do($container, $lazyLoad = true)
{
include_once \dirname(__DIR__, 4).'/vendor/symfony/security-core/User/UserProviderInterface.php';
include_once \dirname(__DIR__, 4).'/vendor/dachcom-digital/members/src/MembersBundle/Security/UserProvider.php';
$a = ($container->privates['MembersBundle\\Manager\\UserManager'] ?? $container->load('getUserManagerService'));
if (isset($container->privates['MembersBundle\\Security\\UserProvider'])) {
return $container->privates['MembersBundle\\Security\\UserProvider'];
}
$file .= '.php';
}
$service = require $this->containerDir.\DIRECTORY_SEPARATOR.$file;
return class_exists($class, false) ? $class::do($this, $lazyLoad) : $service;
}
protected function createProxy($class, \Closure $factory)
{
class_exists($class, false) || require __DIR__.'/'.$class.'.php';
include_once \dirname(__DIR__, 4).'/vendor/symfony/security-http/Util/TargetPathTrait.php';
include_once \dirname(__DIR__, 4).'/vendor/symfony/security-http/Authentication/DefaultAuthenticationSuccessHandler.php';
include_once \dirname(__DIR__, 4).'/vendor/symfony/security-http/Authentication/AuthenticationFailureHandlerInterface.php';
include_once \dirname(__DIR__, 4).'/vendor/symfony/security-http/Authentication/DefaultAuthenticationFailureHandler.php';
$a = ($container->privates['MembersBundle\\Security\\UserProvider'] ?? $container->load('getUserProviderService'));
if (isset($container->privates['security.authenticator.form_login.members_fe'])) {
return $container->privates['security.authenticator.form_login.members_fe'];
}
$b = ($container->services['http_kernel'] ?? $container->getHttpKernelService());
$file .= '.php';
}
$service = require $this->containerDir.\DIRECTORY_SEPARATOR.$file;
return class_exists($class, false) ? $class::do($this, $lazyLoad) : $service;
}
protected function createProxy($class, \Closure $factory)
{
class_exists($class, false) || require __DIR__.'/'.$class.'.php';
include_once \dirname(__DIR__, 4).'/vendor/symfony/security-http/Util/TargetPathTrait.php';
include_once \dirname(__DIR__, 4).'/vendor/symfony/security-http/Firewall/ExceptionListener.php';
include_once \dirname(__DIR__, 4).'/vendor/symfony/security-http/Firewall/LogoutListener.php';
include_once \dirname(__DIR__, 4).'/vendor/symfony/security-bundle/Security/FirewallConfig.php';
$a = ($container->privates['security.authenticator.form_login.members_fe'] ?? $container->load('getSecurity_Authenticator_FormLogin_MembersFeService'));
if (isset($container->privates['security.firewall.map.context.members_fe'])) {
return $container->privates['security.firewall.map.context.members_fe'];
}
$b = ($container->privates['security.event_dispatcher.members_fe'] ?? $container->getSecurity_EventDispatcher_MembersFeService());
$file .= '.php';
}
$service = require $this->containerDir.\DIRECTORY_SEPARATOR.$file;
return class_exists($class, false) ? $class::do($this, $lazyLoad) : $service;
}
protected function createProxy($class, \Closure $factory)
{
class_exists($class, false) || require __DIR__.'/'.$class.'.php';
}
if (null === $method) {
return false !== $registry ? $this->{$registry}[$id] ?? null : null;
}
if (false !== $registry) {
return $this->{$registry}[$id] ?? $this->{$registry}[$id] = $load ? $this->load($method) : $this->{$method}();
}
if (!$load) {
return $this->{$method}();
}
*
* @return mixed
*/
public function get(string $id)
{
return isset($this->serviceMap[$id]) ? ($this->factory)(...$this->serviceMap[$id]) : parent::get($id);
}
/**
* {@inheritdoc}
*/
foreach ($this->map as $contextId => $requestMatcher) {
if (null === $requestMatcher || $requestMatcher->matches($request)) {
$request->attributes->set('_firewall_context', $contextId);
return $this->container->get($contextId);
}
}
return null;
}
/**
* @return FirewallConfig|null
*/
public function getFirewallConfig(Request $request)
{
$context = $this->getFirewallContext($request);
if (null === $context) {
return null;
}
{
if (!$event->isMainRequest()) {
return;
}
if ($this->map instanceof FirewallMap && $config = $this->map->getFirewallConfig($event->getRequest())) {
$this->logoutUrlGenerator->setCurrentFirewall($config->getName(), $config->getContext());
}
}
public function onKernelFinishRequest(FinishRequestEvent $event)
$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();
}
}
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.
} else {
$listeners = $this->getListeners($eventName);
}
if ($listeners) {
$this->callListeners($listeners, $eventName, $event);
}
return $event;
}
try {
$this->beforeDispatch($eventName, $event);
try {
$e = $this->stopwatch->start($eventName, 'section');
try {
$this->dispatcher->dispatch($event, $eventName);
} finally {
if ($e->isStarted()) {
$e->stop();
}
}
*/
private function handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response
{
// request
$event = new RequestEvent($this, $request, $type);
$this->dispatcher->dispatch($event, KernelEvents::REQUEST);
if ($event->hasResponse()) {
return $this->filterResponse($event->getResponse(), $request, $type);
}
{
$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) {
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$kernel = \Pimcore\Bootstrap::kernel();
// reset current request - will be read from request stack from now on
Tool::setCurrentRequest(null);
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
No log messages
[3/3]
InvalidFieldNameException
|
---|
Doctrine\DBAL\Exception\InvalidFieldNameException: An exception occurred while executing 'SELECT o_id FROM objects WHERE o_path = ? AND `o_key` = ?' with params ["\/mitglieder\/", "website-accounts"]: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'o_id' in 'field list' at vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:79 at Doctrine\DBAL\Driver\AbstractMySQLDriver->convertException() (vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:182) at Doctrine\DBAL\DBALException::wrapException() (vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:159) at Doctrine\DBAL\DBALException::driverExceptionDuringQuery() (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:2222) at Doctrine\DBAL\Connection->handleExceptionDuringQuery() (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1312) at Doctrine\DBAL\Connection->executeQuery() (vendor/pimcore/pimcore/lib/Db/PimcoreExtensionsTrait.php:92) at Pimcore\Db\Connection->executeQuery() (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:684) at Doctrine\DBAL\Connection->fetchAssociative() (vendor/pimcore/pimcore/models/DataObject/AbstractObject/Dao.php:62) at Pimcore\Model\DataObject\AbstractObject\Dao->getByPath() (vendor/pimcore/pimcore/models/DataObject/AbstractObject.php:450) at Pimcore\Model\DataObject\AbstractObject::getByPath() (vendor/dachcom-digital/members/src/MembersBundle/Manager/UserManager.php:22) at MembersBundle\Manager\UserManager->__construct() (var/cache/prod/ContainerXaKV6iL/getUserManagerService.php:34) at ContainerXaKV6iL\getUserManagerService::do() (var/cache/prod/ContainerXaKV6iL/App_KernelProdDebugContainer.php:959) at ContainerXaKV6iL\App_KernelProdDebugContainer->load() (var/cache/prod/ContainerXaKV6iL/getUserProviderService.php:23) at ContainerXaKV6iL\getUserProviderService::do() (var/cache/prod/ContainerXaKV6iL/App_KernelProdDebugContainer.php:959) at ContainerXaKV6iL\App_KernelProdDebugContainer->load() (var/cache/prod/ContainerXaKV6iL/getSecurity_Authenticator_FormLogin_MembersFeService.php:32) at ContainerXaKV6iL\getSecurity_Authenticator_FormLogin_MembersFeService::do() (var/cache/prod/ContainerXaKV6iL/App_KernelProdDebugContainer.php:959) at ContainerXaKV6iL\App_KernelProdDebugContainer->load() (var/cache/prod/ContainerXaKV6iL/getSecurity_Firewall_Map_Context_MembersFeService.php:26) at ContainerXaKV6iL\getSecurity_Firewall_Map_Context_MembersFeService::do() (var/cache/prod/ContainerXaKV6iL/App_KernelProdDebugContainer.php:959) at ContainerXaKV6iL\App_KernelProdDebugContainer->load() (vendor/symfony/dependency-injection/Container.php:423) at Symfony\Component\DependencyInjection\Container->getService() (vendor/symfony/dependency-injection/Argument/ServiceLocator.php:42) at Symfony\Component\DependencyInjection\Argument\ServiceLocator->get() (vendor/symfony/security-bundle/Security/FirewallMap.php:78) at Symfony\Bundle\SecurityBundle\Security\FirewallMap->getFirewallContext() (vendor/symfony/security-bundle/Security/FirewallMap.php:52) at Symfony\Bundle\SecurityBundle\Security\FirewallMap->getFirewallConfig() (vendor/symfony/security-bundle/EventListener/FirewallListener.php:45) at Symfony\Bundle\SecurityBundle\EventListener\FirewallListener->configureLogoutUrlGenerator() (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:139) 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() (public/index.php:36) |
[2/3]
Exception
|
---|
Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'o_id' in 'field list' at vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18 at Doctrine\DBAL\Driver\PDO\Exception::new() (vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:119) at Doctrine\DBAL\Driver\PDOStatement->execute() (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1304) at Doctrine\DBAL\Connection->executeQuery() (vendor/pimcore/pimcore/lib/Db/PimcoreExtensionsTrait.php:92) at Pimcore\Db\Connection->executeQuery() (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:684) at Doctrine\DBAL\Connection->fetchAssociative() (vendor/pimcore/pimcore/models/DataObject/AbstractObject/Dao.php:62) at Pimcore\Model\DataObject\AbstractObject\Dao->getByPath() (vendor/pimcore/pimcore/models/DataObject/AbstractObject.php:450) at Pimcore\Model\DataObject\AbstractObject::getByPath() (vendor/dachcom-digital/members/src/MembersBundle/Manager/UserManager.php:22) at MembersBundle\Manager\UserManager->__construct() (var/cache/prod/ContainerXaKV6iL/getUserManagerService.php:34) at ContainerXaKV6iL\getUserManagerService::do() (var/cache/prod/ContainerXaKV6iL/App_KernelProdDebugContainer.php:959) at ContainerXaKV6iL\App_KernelProdDebugContainer->load() (var/cache/prod/ContainerXaKV6iL/getUserProviderService.php:23) at ContainerXaKV6iL\getUserProviderService::do() (var/cache/prod/ContainerXaKV6iL/App_KernelProdDebugContainer.php:959) at ContainerXaKV6iL\App_KernelProdDebugContainer->load() (var/cache/prod/ContainerXaKV6iL/getSecurity_Authenticator_FormLogin_MembersFeService.php:32) at ContainerXaKV6iL\getSecurity_Authenticator_FormLogin_MembersFeService::do() (var/cache/prod/ContainerXaKV6iL/App_KernelProdDebugContainer.php:959) at ContainerXaKV6iL\App_KernelProdDebugContainer->load() (var/cache/prod/ContainerXaKV6iL/getSecurity_Firewall_Map_Context_MembersFeService.php:26) at ContainerXaKV6iL\getSecurity_Firewall_Map_Context_MembersFeService::do() (var/cache/prod/ContainerXaKV6iL/App_KernelProdDebugContainer.php:959) at ContainerXaKV6iL\App_KernelProdDebugContainer->load() (vendor/symfony/dependency-injection/Container.php:423) at Symfony\Component\DependencyInjection\Container->getService() (vendor/symfony/dependency-injection/Argument/ServiceLocator.php:42) at Symfony\Component\DependencyInjection\Argument\ServiceLocator->get() (vendor/symfony/security-bundle/Security/FirewallMap.php:78) at Symfony\Bundle\SecurityBundle\Security\FirewallMap->getFirewallContext() (vendor/symfony/security-bundle/Security/FirewallMap.php:52) at Symfony\Bundle\SecurityBundle\Security\FirewallMap->getFirewallConfig() (vendor/symfony/security-bundle/EventListener/FirewallListener.php:45) at Symfony\Bundle\SecurityBundle\EventListener\FirewallListener->configureLogoutUrlGenerator() (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:139) 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() (public/index.php:36) |
[1/3]
PDOException
|
---|
PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'o_id' in 'field list' at vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:117 at PDOStatement->execute() (vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:117) at Doctrine\DBAL\Driver\PDOStatement->execute() (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1304) at Doctrine\DBAL\Connection->executeQuery() (vendor/pimcore/pimcore/lib/Db/PimcoreExtensionsTrait.php:92) at Pimcore\Db\Connection->executeQuery() (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:684) at Doctrine\DBAL\Connection->fetchAssociative() (vendor/pimcore/pimcore/models/DataObject/AbstractObject/Dao.php:62) at Pimcore\Model\DataObject\AbstractObject\Dao->getByPath() (vendor/pimcore/pimcore/models/DataObject/AbstractObject.php:450) at Pimcore\Model\DataObject\AbstractObject::getByPath() (vendor/dachcom-digital/members/src/MembersBundle/Manager/UserManager.php:22) at MembersBundle\Manager\UserManager->__construct() (var/cache/prod/ContainerXaKV6iL/getUserManagerService.php:34) at ContainerXaKV6iL\getUserManagerService::do() (var/cache/prod/ContainerXaKV6iL/App_KernelProdDebugContainer.php:959) at ContainerXaKV6iL\App_KernelProdDebugContainer->load() (var/cache/prod/ContainerXaKV6iL/getUserProviderService.php:23) at ContainerXaKV6iL\getUserProviderService::do() (var/cache/prod/ContainerXaKV6iL/App_KernelProdDebugContainer.php:959) at ContainerXaKV6iL\App_KernelProdDebugContainer->load() (var/cache/prod/ContainerXaKV6iL/getSecurity_Authenticator_FormLogin_MembersFeService.php:32) at ContainerXaKV6iL\getSecurity_Authenticator_FormLogin_MembersFeService::do() (var/cache/prod/ContainerXaKV6iL/App_KernelProdDebugContainer.php:959) at ContainerXaKV6iL\App_KernelProdDebugContainer->load() (var/cache/prod/ContainerXaKV6iL/getSecurity_Firewall_Map_Context_MembersFeService.php:26) at ContainerXaKV6iL\getSecurity_Firewall_Map_Context_MembersFeService::do() (var/cache/prod/ContainerXaKV6iL/App_KernelProdDebugContainer.php:959) at ContainerXaKV6iL\App_KernelProdDebugContainer->load() (vendor/symfony/dependency-injection/Container.php:423) at Symfony\Component\DependencyInjection\Container->getService() (vendor/symfony/dependency-injection/Argument/ServiceLocator.php:42) at Symfony\Component\DependencyInjection\Argument\ServiceLocator->get() (vendor/symfony/security-bundle/Security/FirewallMap.php:78) at Symfony\Bundle\SecurityBundle\Security\FirewallMap->getFirewallContext() (vendor/symfony/security-bundle/Security/FirewallMap.php:52) at Symfony\Bundle\SecurityBundle\Security\FirewallMap->getFirewallConfig() (vendor/symfony/security-bundle/EventListener/FirewallListener.php:45) at Symfony\Bundle\SecurityBundle\EventListener\FirewallListener->configureLogoutUrlGenerator() (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:139) 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() (public/index.php:36) |