"data2ui/images/moon/1.svg"
"data2ui/images/moon/1.svg"
"data2ui/images/moon/2.svg"
"data2ui/images/moon/2.svg"
"data2ui/images/moon/2.svg"
"data2ui/images/moon/2.svg"
"data2ui/images/moon/3.svg"
"data2ui/images/moon/3.svg"
"data2ui/images/moon/3.svg"
"data2ui/images/moon/3.svg"
"data2ui/images/moon/4.svg"
"data2ui/images/moon/4.svg"
"data2ui/images/moon/4.svg"
"data2ui/images/moon/4.svg"
"data2ui/images/moon/1.svg"
"data2ui/images/moon/1.svg"
"data2ui/images/moon/1.svg"
"data2ui/images/moon/1.svg"
ErrorException {#1010 #severity: E_WARNING }
if ($baseDir && !is_dir($baseDir) && !@mkdir($baseDir, 0777, true) && !is_dir($baseDir)) { throw new \RuntimeException(\sprintf('Session Storage was not able to create directory "%s".', $baseDir)); } if ($savePath !== \ini_get('session.save_path')) { ini_set('session.save_path', $savePath); } if ('files' !== \ini_get('session.save_handler')) { ini_set('session.save_handler', 'files'); } } { include_once \dirname(__DIR__, 4).'/vendor/symfony/http-foundation/Session/Storage/Handler/AbstractSessionHandler.php'; include_once \dirname(__DIR__, 4).'/vendor/symfony/http-foundation/Session/Storage/Handler/StrictSessionHandler.php'; include_once \dirname(__DIR__, 4).'/vendor/symfony/http-foundation/Session/Storage/Handler/NativeFileSessionHandler.php'; return $container->privates['session.handler.native_file'] = new \Symfony\Component\HttpFoundation\Session\Storage\Handler\StrictSessionHandler(new \Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeFileSessionHandler(($container->targetDir.''.'/sessions'))); }} $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 (isset($container->privates['session.factory'])) { return $container->privates['session.factory']; } $instance = new \Symfony\Component\HttpFoundation\Session\SessionFactory(($container->services['request_stack'] ??= new \Symfony\Component\HttpFoundation\RequestStack()), new \Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorageFactory($container->parameters['session.storage.options'], ($container->privates['session.handler.native_file'] ?? $container->load('getSession_Handler_NativeFileService')), new \Symfony\Component\HttpFoundation\Session\Storage\MetadataBag('_sf2_meta', 0), true), [$a, 'onSessionUsage']); if (isset($container->privates['session.factory'])) { return $container->privates['session.factory']; } $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] ??= $load ? $this->load($method) : $this->{$method}($this); } if (!$load) { return $this->{$method}($this); } public function get(string $id): mixed { return match (\count($this->serviceMap[$id] ?? [])) { 0 => parent::get($id), 1 => $this->serviceMap[$id][0], default => ($this->factory)(...$this->serviceMap[$id]), }; } public function getProvidedServices(): array {class SessionListener extends AbstractSessionListener{ protected function getSession(): ?SessionInterface { if ($this->container->has('session_factory')) { return $this->container->get('session_factory')->createSession(); } return null; }} $request->setSessionFactory(function () use ($request) { // Prevent calling `$this->getSession()` twice in case the Request (and the below factory) is cloned static $sess; if (!$sess) { $sess = $this->getSession(); $request->setSession($sess); /* * For supporting sessions in php runtime with runners like roadrunner or swoole, the session * cookie needs to be read from the cookie bag and set on the session storage. */ public function getSession(): SessionInterface { $session = $this->session; if (!$session instanceof SessionInterface && null !== $session) { $this->setSession($session = $session()); } if (null === $session) { throw new SessionNotFoundException('Session has not been set.'); } * previous requests. */ public function hasPreviousSession(): bool { // the check for $this->session avoids malicious users trying to fake a session cookie with proper name return $this->hasSession() && $this->cookies->has($this->getSession()->getName()); } /** * Whether the request contains a Session object. * $this->dispatcher->addListener(KernelEvents::RESPONSE, $this->onKernelResponse(...)); $this->registered = true; } $request = $event->getRequest(); $session = $request->hasPreviousSession() ? $request->getSession() : null; $request->attributes->set('_security_firewall_run', $this->sessionKey); if (null !== $session) { $usageIndexValue = $session instanceof Session ? $usageIndexReference = &$session->getUsageIndex() : 0; public function authenticate(RequestEvent $event): void { $startTime = microtime(true); try { $this->listener->authenticate($event); } catch (LazyResponseException $e) { $this->response = $e->getResponse(); throw $e; } finally { } $this->tokenStorage->setInitializer(function () use ($event, $listeners) { $event = new LazyResponseEvent($event); foreach ($listeners as $listener) { $listener($event); } }); }} public function getToken(): ?TokenInterface { if ($initializer = $this->initializer) { $this->initializer = null; $initializer(); } return $this->token; } if ($this->shouldTrackUsage()) { // increments the internal session usage index $this->getSession()->getMetadataBag(); } return $this->storage->getToken(); } public function setToken(?TokenInterface $token = null): void { $this->storage->setToken($token); $this->accessDecisionManager = $accessDecisionManager; } final public function isGranted(mixed $attribute, mixed $subject = null): bool { $token = $this->tokenStorage->getToken(); if (!$token || !$token->getUser()) { $token = new NullToken(); } { if (!$this->container->has('security.authorization_checker')) { throw new \LogicException('The SecurityBundle is not registered in your application. Try running "composer require symfony/security-bundle".'); } return $this->container->get('security.authorization_checker')->isGranted($attribute, $subject); } /** * Throws an exception unless the attribute is granted against the current authentication token and optionally * supplied subject. 'data2ui_forecast_city' => $city, 'data2ui_forecast_city_name' => $city->getName(), 'data2ui_forecast_city_insee' => $city->getInsee(), 'data2ui_forecast_city_name_url' => $city->getNameURL(), 'data2ui_forecast_city_base_url' => $this->generateUrl('forecast_city_public'), 'is_agri' => $this->isGranted('ROLE_AGRI'), ]); } #[Route( path: '/resumes/ville/{city}.json', Data2uiForecastController $data2uiForecastController, #[ValueResolver(\App\HttpKernel\ArgumentResolver\CityValueResolver::class)] ?City $city = null, int $day = 0, ?int $period = null ): Response { return $this->doGetForecastForCity($request, $data2uiForecastController, $day, $period, 'public', $city); } #[Route( path: '/agriculture/ville/{city}/{day}/{period}', name: 'forecast_city_farmer', $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS); $controller = $event->getController(); $arguments = $event->getArguments(); // call controller $response = $controller(...$arguments); // view if (!$response instanceof Response) { $event = new ViewEvent($this, $request, $type, $response, $event); $this->dispatcher->dispatch($event, KernelEvents::VIEW); $request->headers->set('X-Php-Ob-Level', (string) ob_get_level()); $this->requestStack->push($request); $response = null; try { return $response = $this->handleRaw($request, $type); } catch (\Throwable $e) { if ($e instanceof \Error && !$this->handleAllThrowables) { throw $e; } if (!$this->handlingHttpCache) { $this->resetServices = true; } try { return $this->getHttpKernel()->handle($request, $type, $catch); } finally { --$this->requestStackSize; } } ) { } public function run(): int { $response = $this->kernel->handle($this->request); if (Kernel::VERSION_ID >= 60400) { $response->send(false); if (\function_exists('fastcgi_finish_request') && !$this->debug) {$app = $app(...$args);exit( $runtime ->getRunner($app) ->run());<?phpuse App\Kernel;require_once dirname(__DIR__).'/vendor/autoload_runtime.php';date_default_timezone_set('Europe/Paris');return function (array $context) { return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);|
ErrorException
|
|---|
ErrorException:
Warning: ini_set(): Session ini settings cannot be changed after headers have already been sent
at vendor/symfony/http-foundation/Session/Storage/Handler/NativeFileSessionHandler.php:49
at Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeFileSessionHandler->__construct()
(var/cache/prod/ContainerAbYlAq4/getSession_Handler_NativeFileService.php:25)
at ContainerAbYlAq4\getSession_Handler_NativeFileService::do()
(var/cache/prod/ContainerAbYlAq4/App_KernelProdDebugContainer.php:458)
at ContainerAbYlAq4\App_KernelProdDebugContainer->load()
(var/cache/prod/ContainerAbYlAq4/getSession_FactoryService.php:34)
at ContainerAbYlAq4\getSession_FactoryService::do()
(var/cache/prod/ContainerAbYlAq4/App_KernelProdDebugContainer.php:458)
at ContainerAbYlAq4\App_KernelProdDebugContainer->load()
(vendor/symfony/dependency-injection/Container.php:404)
at Symfony\Component\DependencyInjection\Container->getService()
(vendor/symfony/dependency-injection/Argument/ServiceLocator.php:40)
at Symfony\Component\DependencyInjection\Argument\ServiceLocator->get()
(vendor/symfony/http-kernel/EventListener/SessionListener.php:28)
at Symfony\Component\HttpKernel\EventListener\SessionListener->getSession()
(vendor/symfony/http-kernel/EventListener/AbstractSessionListener.php:81)
at Symfony\Component\HttpKernel\EventListener\AbstractSessionListener->Symfony\Component\HttpKernel\EventListener\{closure}()
(vendor/symfony/http-foundation/Request.php:748)
at Symfony\Component\HttpFoundation\Request->getSession()
(vendor/symfony/http-foundation/Request.php:765)
at Symfony\Component\HttpFoundation\Request->hasPreviousSession()
(vendor/symfony/security-http/Firewall/ContextListener.php:90)
at Symfony\Component\Security\Http\Firewall\ContextListener->authenticate()
(vendor/symfony/security-bundle/Debug/WrappedLazyListener.php:46)
at Symfony\Bundle\SecurityBundle\Debug\WrappedLazyListener->authenticate()
(vendor/symfony/security-bundle/Security/LazyFirewallContext.php:73)
at Symfony\Bundle\SecurityBundle\Security\LazyFirewallContext->Symfony\Bundle\SecurityBundle\Security\{closure}()
(vendor/symfony/security-core/Authentication/Token/Storage/TokenStorage.php:34)
at Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage->getToken()
(vendor/symfony/security-core/Authentication/Token/Storage/UsageTrackingTokenStorage.php:44)
at Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage->getToken()
(vendor/symfony/security-core/Authorization/AuthorizationChecker.php:42)
at Symfony\Component\Security\Core\Authorization\AuthorizationChecker->isGranted()
(vendor/symfony/framework-bundle/Controller/AbstractController.php:209)
at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->isGranted()
(src/Controller/ForecastController.php:432)
at App\Controller\ForecastController->doGetForecastForCity()
(src/Controller/ForecastController.php:321)
at App\Controller\ForecastController->getForecastForCityGeneric()
(vendor/symfony/http-kernel/HttpKernel.php:181)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:76)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:208)
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:29)
at require_once('/srv/web-meteobretagne2025/vendor/autoload_runtime.php')
(public/index.php:5)
|