home
/
zktecojo
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Session
➕ New
📤 Upload
✎ Editing:
SessionServiceProvider.php
← Back
<?php namespace Illuminate\Session; use Illuminate\Support\ServiceProvider; class SessionServiceProvider extends ServiceProvider { /** * Register the service provider. * * @return void */ public function register() { $this->setupDefaultDriver(); $this->registerSessionManager(); $this->registerSessionDriver(); } /** * Setup the default session driver for the application. * * @return void */ protected function setupDefaultDriver() { if ($this->app->runningInConsole()) { $this->app['config']['session.driver'] = 'array'; } } /** * Register the session manager instance. * * @return void */ protected function registerSessionManager() { $this->app->bindShared('session', function($app) { return new SessionManager($app); }); } /** * Register the session driver instance. * * @return void */ protected function registerSessionDriver() { $this->app->bindShared('session.store', function($app) { // First, we will create the session manager which is responsible for the // creation of the various session drivers when they are needed by the // application instance, and will resolve them on a lazy load basis. $manager = $app['session']; return $manager->driver(); }); } }
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel