Symfony-docs: [HttpFoundation] Symfony API documentation is missing RedisSessionHandler class in 4.1

Created on 4 Jul 2018  Â·  7Comments  Â·  Source: symfony/symfony-docs

The Symfony API documentation for HttpFoundation is missing RedisSessionHandler class in 4.1, link:
https://api.symfony.com/4.1/Symfony/Component/HttpFoundation/Session/Storage/Handler/RedisSessionHandler.html

The class is in 4.1, github link:
https://github.com/symfony/http-foundation/blob/4.1/Session/Storage/Handler/RedisSessionHandler.php

The documentation links to 404 page for RedisSessionHandler from https://symfony.com/doc/current/components/http_foundation/session_configuration.html#custom-save-handlers

Website

Most helpful comment

You're welcome!

I think that the 404 error page is on Sensio's side.

On the meantime, maybe I could transpose my article for a new Symfony documentation entry, just like the one for PDO. What do you think @javiereguiluz @weaverryan?

All 7 comments

Bump on this. Want to use this feature, but no info on how.

@DPerkunas I wrote this article on the use of the RedisSessionHandler class: http://blog.michaelperrin.fr/2018/08/14/redis-session-handling-in-symfony/

I tried to figure out why there is a 404 page from the documentation (as I had the same problem), but could not understand why.

You’re awesome, thank you for taking the time to write it up. I’ll try it out.

On Aug 14, 2018, at 7:44 AM, Michaël Perrin notifications@github.com wrote:

@DPerkunas https://github.com/DPerkunas I wrote this article on the use of the RedisSessionHandler class: http://blog.michaelperrin.fr/2018/08/14/redis-session-handling-in-symfony/ http://blog.michaelperrin.fr/2018/08/14/redis-session-handling-in-symfony/
I tried to figure out why there is a 404 page from the documentation (as I had the same problem), but could not understand why.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/symfony/symfony-docs/issues/10011#issuecomment-412897228, or mute the thread https://github.com/notifications/unsubscribe-auth/AIGt3IyXw30LURnCH0YWWPHUN59Scp8qks5uQuJUgaJpZM4VCjQ5.

You're welcome!

I think that the 404 error page is on Sensio's side.

On the meantime, maybe I could transpose my article for a new Symfony documentation entry, just like the one for PDO. What do you think @javiereguiluz @weaverryan?

Checking back in, it's working great. The only issue I'm having is when installing new stuff via composer, cache fails to clear and gives me the following error.

It only occurs during composer installs, if I do php bin/console cache:clear, no issues.

Script cache:clear returned with error code 255
PHP Fatal error:  Uncaught Symfony\Component\Debug\Exception\ClassNotFoundException: Attempted to load class "Redis" from the global namespace.
!!  Did you forget a "use" statement? in /Users/myname/project/var/cache/dev/ContainerQy0GG7I/srcDevDebugProjectContainer.php:669
!!  Stack trace:
!!  #0 /Users/myname/project/var/cache/dev/ContainerQy0GG7I/srcDevDebugProjectContainer.php(509): ContainerQy0GG7I\srcDevDebugProjectContainer->getDoctrineCache_Providers_Doctrine_Orm_DefaultResultCacheService()
!!  #1 /Users/myname/project/vendor/symfony/dependency-injection/Container.php(242): ContainerQy0GG7I\srcDevDebugProjectContainer->getDoctrine_Orm_DefaultEntityManagerService()
!!  #2 /Users/myname/project/vendor/symfony/dependency-injection/Container.php(222): Symfony\Component\DependencyInjection\Container->make('doctrine.orm.de...', 1)
!!  #3 /Users/myname/project/vendor/symfony/doctrine-bridge/ManagerRegistry.php(35): Symfony\Component\DependencyInjection\Container->get('doctrine.orm.de...')
!!  #4 /Users/myname/project/v in /Users/myname/project/var/cache/dev/ContainerQy0GG7I/srcDevDebugProjectContainer.php on line 669
!!  
!!  Fatal error: Uncaught Symfony\Component\Debug\Exception\ClassNotFoundException: Attempted to load class "Redis" from the global namespace.
!!  Did you forget a "use" statement? in /Users/myname/project/var/cache/dev/ContainerQy0GG7I/srcDevDebugProjectContainer.php:669
!!  Stack trace:
!!  #0 /Users/myname/project/var/cache/dev/ContainerQy0GG7I/srcDevDebugProjectContainer.php(509): ContainerQy0GG7I\srcDevDebugProjectContainer->getDoctrineCache_Providers_Doctrine_Orm_DefaultResultCacheService()
!!  #1 /Users/myname/project/vendor/symfony/dependency-injection/Container.php(242): ContainerQy0GG7I\srcDevDebugProjectContainer->getDoctrine_Orm_DefaultEntityManagerService()
!!  #2 /Users/myname/project/vendor/symfony/dependency-injection/Container.php(222): Symfony\Component\DependencyInjection\Container->make('doctrine.orm.de...', 1)
!!  #3 /Users/myname/project/vendor/symfony/doctrine-bridge/ManagerRegistry.php(35): Symfony\Component\DependencyInjection\Container->get('doctrine.orm.de...')
!!  #4 /Users/myname/project/v in /Users/myname/project/var/cache/dev/ContainerQy0GG7I/srcDevDebugProjectContainer.php on line 669
!!  

It looks likes you are running Composer outside of your PHP installation which has the Redis extension installed (e.g. you are running Composer on your host system while your PHP installation is in a Docker container).
The solution is to run Composer in the Docker container.

Closing as fixed because the Symfony API was fully regenerated recently and all reported issues were fixed. Thanks for reporting!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bobvandevijver picture bobvandevijver  Â·  4Comments

steevanb picture steevanb  Â·  4Comments

Kwadz picture Kwadz  Â·  3Comments

wouterj picture wouterj  Â·  4Comments

dannyvw picture dannyvw  Â·  3Comments