Support the ongoing development of Laravel.io →
posted 10 years ago
IOC

Laravel SessionManager class is bind to $app['session'] in app container. when we inject a dependency through __construct( SessionManager $session) does it reinstantiate the class or uses $app['session'] ? or we should inject the $app into the class constructor and access its session key ?

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

reshadman reshadman Joined 15 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.