Exceptions
Exception
ErrorException
SessionHandlerProxy->gc()
if (filter_var(ini_get('session.use_cookies'), FILTER_VALIDATE_BOOLEAN) && headers_sent($file, $line)) {
throw new \RuntimeException(sprintf('Failed to start the session because headers have already been sent by "%s" at line %d.', $file, $line));
}
// ok to try and start the session
if (!session_start()) {
throw new \RuntimeException('Failed to start the session');
}
if (null !== $this->emulateSameSite) {
$originalCookie = SessionUtils::popSessionCookie(session_name(), session_id());
* @param Container $container
*/
public function setContainer(\Symfony\Component\DependencyInjection\Container $container)
{
$this->container = $container;
$this->DBName = $container->get('session')->get('DBName', "default") ;
return ;
}
/**
* Effectue l'initialisation, une fois qu'on a reçu le container et qu'on connait la BDD sur laquelle travailler
in
var/cache/dev/ContainerOef5cES/getDoctrine_Dbal_DefaultConnectionService.php->setContainer (line 43)
$d->addEventListener([0 => 'loadClassMetadata'], 'doctrine.orm.auto_generate_proxy_classes_listeners.attach_entity_listeners');
$d->addEventListener([0 => 'loadClassMetadata'], 'doctrine.orm.default_listeners.attach_entity_listeners');
$this->services['doctrine.dbal.default_connection'] = $instance = (new \Doctrine\Bundle\DoctrineBundle\ConnectionFactory([]))->createConnection(['charset' => 'utf8', 'driver' => $this->getEnv('resolve:doctrine_database_driver'), 'host' => $this->getEnv('resolve:doctrine_database_host'), 'port' => $this->getEnv('resolve:doctrine_database_port'), 'dbname' => $this->getEnv('resolve:doctrine_database_name'), 'user' => $this->getEnv('resolve:doctrine_database_user'), 'password' => $this->getEnv('resolve:doctrine_database_password'), 'driverOptions' => [], 'wrapperClass' => 'App\\PaaBundle\\Component\\Connection\\ConnectionWrapper', 'serverVersion' => '4', 'defaultTableOptions' => ['charset' => 'utf8']], $a, $d, []);
$instance->setContainer($this);
$instance->initialise();
return $instance;
$a->setNamingStrategy(new \Doctrine\ORM\Mapping\UnderscoreNamingStrategy(0, true));
$a->setQuoteStrategy(($this->privates['doctrine.orm.quote_strategy.default'] ?? ($this->privates['doctrine.orm.quote_strategy.default'] = new \Doctrine\ORM\Mapping\DefaultQuoteStrategy())));
$a->setEntityListenerResolver(new \Doctrine\Bundle\DoctrineBundle\Mapping\ContainerEntityListenerResolver($this));
$a->setRepositoryFactory(($this->privates['doctrine.orm.container_repository_factory'] ?? $this->load('getDoctrine_Orm_ContainerRepositoryFactoryService.php')));
$this->services['doctrine.orm.default_entity_manager'] = $instance = \Doctrine\ORM\EntityManager::create(($this->services['doctrine.dbal.default_connection'] ?? $this->load('getDoctrine_Dbal_DefaultConnectionService.php')), $a);
(new \Doctrine\Bundle\DoctrineBundle\ManagerConfigurator([], []))->configure($instance);
return $instance;
$this->loading[$id] = true;
try {
if (isset($this->fileMap[$id])) {
return /* self::IGNORE_ON_UNINITIALIZED_REFERENCE */ 4 === $invalidBehavior ? null : $this->load($this->fileMap[$id]);
} elseif (isset($this->methodMap[$id])) {
return /* self::IGNORE_ON_UNINITIALIZED_REFERENCE */ 4 === $invalidBehavior ? null : $this->{$this->methodMap[$id]}();
}
} catch (\Exception $e) {
unset($this->services[$id]);
* @throws \Exception if an exception has been thrown when the service has been resolved
*
* @see Reference
*/
public function get($id, $invalidBehavior = /* self::EXCEPTION_ON_INVALID_REFERENCE */ 1) {
return $this->services[$id] ?? $this->services[$id = $this->aliases[$id] ?? $id] ?? ('service_container' === $id ? $this : ($this->factories[$id] ?? [$this, 'make'])($id, $invalidBehavior));
}
/**
* Creates a service.
*
in
vendor/doctrine/persistence/lib/Doctrine/Persistence/AbstractManagerRegistry.php->getService (line 154)
private $entityManager;
private $security;
public function __construct($project_dir, $doctrine, Security $security) {
$this->project_dir = $project_dir;
$this->entityManager = $doctrine->getManager() ;
$this->security = $security ;
}
// Capture des exceptions "page not found"
public function onKernelException(GetResponseForExceptionEvent $event) {
* @return \App\Event\ForceBruteListener
*/
protected function getForceBruteListenerService()
{
return $this->privates['App\\Event\\ForceBruteListener'] = new \App\Event\ForceBruteListener($this->targetDirs[3], ($this->services['doctrine'] ?? $this->getDoctrineService()), new \Symfony\Component\Security\Core\Security(new \Symfony\Component\DependencyInjection\Argument\ServiceLocator($this->getService, [
'security.authorization_checker' => ['services', 'security.authorization_checker', 'getSecurity_AuthorizationCheckerService', false],
'security.token_storage' => ['services', 'security.token_storage', 'getSecurity_TokenStorageService', false],
])));
}
/**
in
var/cache/dev/ContainerOef5cES/srcApp_KernelDevDebugContainer.php->getForceBruteListenerService (line 484)
}, 1 => 'onKernelException'], 0);
$instance->addListener('kernel.exception', [0 => function () {
return ($this->privates['App\\Event\\ForceBruteListener'] ?? $this->getForceBruteListenerService());
}, 1 => 'onKernelException'], 0);
$instance->addListener('kernel.controller', [0 => function () {
return ($this->privates['App\\Event\\ForceBruteListener'] ?? $this->getForceBruteListenerService());
}, 1 => 'onKernelController'], 0);
$instance->addListener('kernel.exception', [0 => function () {
return ($this->privates['App\\PaaBundle\\Component\\EventListener\\ExceptionListener'] ?? ($this->privates['App\\PaaBundle\\Component\\EventListener\\ExceptionListener'] = new \App\PaaBundle\Component\EventListener\ExceptionListener($this->targetDirs[3])));
}, 1 => 'onKernelException'], 0);
$instance->addListener('kernel.request', [0 => function () {
$this->sorted[$eventName] = [];
foreach ($this->listeners[$eventName] as $priority => $listeners) {
foreach ($listeners as $k => $listener) {
if (\is_array($listener) && isset($listener[0]) && $listener[0] instanceof \Closure) {
$listener[0] = $listener[0]();
$this->listeners[$eventName][$priority][$k] = $listener;
}
$this->sorted[$eventName][] = $listener;
}
}
$this->orphanedEvents[] = $eventName;
return;
}
foreach ($this->dispatcher->getListeners($eventName) as $listener) {
$priority = $this->getListenerPriority($eventName, $listener);
$wrappedListener = new WrappedListener($listener instanceof WrappedListener ? $listener->getWrappedListener() : $listener, null, $this->stopwatch, $this);
$this->wrappedListeners[$eventName][] = $wrappedListener;
$this->dispatcher->removeListener($eventName, $listener);
$this->dispatcher->addListener($eventName, $wrappedListener, $priority);
if (null !== $this->logger && $event->isPropagationStopped()) {
$this->logger->debug(sprintf('The "%s" event is already stopped. No listeners have been called.', $eventName));
}
$this->preProcess($eventName);
try {
$this->preDispatch($eventName, $event);
try {
$e = $this->stopwatch->start($eventName, 'section');
try {
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 FilterControllerEvent($this, $controller, $request, $type);
$this->dispatcher->dispatch(KernelEvents::CONTROLLER, $event);
$controller = $event->getController();
// controller arguments
$arguments = $this->argumentResolver->getArguments($request, $controller);
*/
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true) {
$request->headers->set('X-Php-Ob-Level', ob_get_level());
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
Request::setTrustedHosts([$trustedHosts]);
}
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
// // LG 20220802 pour tests
// if (file_exists("/home/luc/partage_win10/Poubelle/")) {
// $jsonfile = "/home/luc/partage_win10/Poubelle/comparePasswords.txt";
// } else if (file_exists("/var/www/html/PAA/Recette/var/log/")) {
Stack Trace
ErrorException |
---|
ErrorException: Notice: SessionHandler::gc(): ps_files_cleanup_dir: opendir(/var/lib/php/sessions) failed: Permission denied (13) at vendor/symfony/http-foundation/Session/Storage/Handler/StrictSessionHandler.php:101 at Symfony\Component\HttpFoundation\Session\Storage\Handler\StrictSessionHandler->gc() (vendor/symfony/http-foundation/Session/Storage/Proxy/SessionHandlerProxy.php:83) at Symfony\Component\HttpFoundation\Session\Storage\Proxy\SessionHandlerProxy->gc() at session_start() (vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:153) at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start() (vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:317) at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->getBag() (vendor/symfony/http-foundation/Session/Session.php:231) at Symfony\Component\HttpFoundation\Session\Session->getBag() (vendor/symfony/http-foundation/Session/Session.php:253) at Symfony\Component\HttpFoundation\Session\Session->getAttributeBag() (vendor/symfony/http-foundation/Session/Session.php:68) at Symfony\Component\HttpFoundation\Session\Session->get() (src/PaaBundle/Component/Connection/ConnectionWrapper.php:59) at App\PaaBundle\Component\Connection\ConnectionWrapper->setContainer() (var/cache/dev/ContainerOef5cES/getDoctrine_Dbal_DefaultConnectionService.php:43) at require('/var/www/html/PAA/Recette/var/cache/dev/ContainerOef5cES/getDoctrine_Dbal_DefaultConnectionService.php') (var/cache/dev/ContainerOef5cES/srcApp_KernelDevDebugContainer.php:428) at ContainerOef5cES\srcApp_KernelDevDebugContainer->load() (var/cache/dev/ContainerOef5cES/getDoctrine_Orm_DefaultEntityManagerService.php:52) at require('/var/www/html/PAA/Recette/var/cache/dev/ContainerOef5cES/getDoctrine_Orm_DefaultEntityManagerService.php') (var/cache/dev/ContainerOef5cES/srcApp_KernelDevDebugContainer.php:428) at ContainerOef5cES\srcApp_KernelDevDebugContainer->load() (vendor/symfony/dependency-injection/Container.php:229) at Symfony\Component\DependencyInjection\Container->make() (vendor/symfony/dependency-injection/Container.php:212) at Symfony\Component\DependencyInjection\Container->get() (vendor/symfony/doctrine-bridge/ManagerRegistry.php:34) at Symfony\Bridge\Doctrine\ManagerRegistry->getService() (vendor/doctrine/persistence/lib/Doctrine/Persistence/AbstractManagerRegistry.php:154) at Doctrine\Persistence\AbstractManagerRegistry->getManager() (src/Event/ForceBruteListener.php:32) at App\Event\ForceBruteListener->__construct() (var/cache/dev/ContainerOef5cES/srcApp_KernelDevDebugContainer.php:964) at ContainerOef5cES\srcApp_KernelDevDebugContainer->getForceBruteListenerService() (var/cache/dev/ContainerOef5cES/srcApp_KernelDevDebugContainer.php:484) at ContainerOef5cES\srcApp_KernelDevDebugContainer->ContainerOef5cES\{closure}() (vendor/symfony/event-dispatcher/EventDispatcher.php:219) at Symfony\Component\EventDispatcher\EventDispatcher->sortListeners() (vendor/symfony/event-dispatcher/EventDispatcher.php:59) at Symfony\Component\EventDispatcher\EventDispatcher->getListeners() (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:257) at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->preProcess() (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:129) at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch() (vendor/symfony/http-kernel/HttpKernel.php:133) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:65) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:190) at Symfony\Component\HttpKernel\Kernel->handle() (public/index.php:28) |