PHP Classes
elePHPant
Icontem

File: src/Utils/Traits/Session.php

Recommend this page to a friend!
  Classes of Thierry Feuzeu  >  Jaxon  >  src/Utils/Traits/Session.php  >  Download  
File: src/Utils/Traits/Session.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Jaxon
Call PHP classes from JavaScript using AJAX
Author: By
Last change: Merge pull request #39 from jaxon-php/v2.2.x

Merge from v2.2.5
Date: 3 months ago
Size: 924 bytes
 

 

Contents

Class file image Download
<?php

/**
 * View.php - Trait for session functions
 *
 * @package jaxon-core
 * @author Thierry Feuzeu <thierry.feuzeu@gmail.com>
 * @copyright 2016 Thierry Feuzeu <thierry.feuzeu@gmail.com>
 * @license https://opensource.org/licenses/BSD-3-Clause BSD 3-Clause License
 * @link https://github.com/jaxon-php/jaxon-core
 */

namespace Jaxon\Utils\Traits;

use
Jaxon\DI\Container;

trait
Session
{
   
/**
     * Get the session manager
     *
     * @return object The session manager
     */
   
public function getSessionManager()
    {
        return
Container::getInstance()->getSessionManager();
    }
   
   
/**
     * Set the session manager
     *
     * @param Closure $xClosure A closure to create the session instance
     *
     * @return void
     */
   
public function setSessionManager($xClosure)
    {
       
Container::getInstance()->setSessionManager($xClosure);
    }
}