Back to Joomla project (class list)

Class Session - list of methods

Service provider for the application's session dependency
Package: Joomla\CMS\Service\Provider
Copyright: (C) 2018 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE
Located at: Joomla/Service/Provider/Session.php
Project: Joomla

Method Summary

public void
(\Joomla\DI\Container $container)

Registers the service provider with a DI container.
Parameters
  • \Joomla\DI\Container $container The DI container.
Returns
  • void
Since
  • 4.0.0
Show source code of this method: register Source Code

private \Joomla\Session\SessionInterface
(\Joomla\Session\StorageInterface $storage, \Joomla\CMS\Application\CMSApplicationInterface $app, \Joomla\Event\DispatcherInterface $dispatcher, array $options)

Build the root session service
Parameters
  • \Joomla\Session\StorageInterface $storage The session storage engine.
  • \Joomla\CMS\Application\CMSApplicationInterface $app The application instance.
  • \Joomla\Event\DispatcherInterface $dispatcher The event dispatcher.
  • array $options The configured session options.
Returns
  • \Joomla\Session\SessionInterface
Since
  • 4.0.0
Show source code of this method: buildSession Source Code

private void
(\Joomla\DI\Container $container, \SessionHandlerInterface $sessionHandler)

Registers the session handler as a service
Parameters
  • \Joomla\DI\Container $container The container to register the service to.
  • \SessionHandlerInterface $sessionHandler The session handler.
Returns
  • void
Since
  • 4.0.0
Show source code of this method: registerSessionHandlerAsService Source Code

Tags Summary

Since
4.0.0