/var/www/hkosl.com/b2b2c/webadmin/libraies/aura/session/config/Common.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/**
 *
 * This file is part of Aura for PHP.
 *
 * @package Aura.Session
 *
 * @license http://opensource.org/licenses/bsd-license.php BSD
 *
 */
namespace Aura\Session\_Config;

use 
Aura\Di\Config;
use 
Aura\Di\Container;

class 
Common extends Config
{
    public function 
define(Container $di)
    {
        
/**
         * Services
         */
        
$di->set('aura/session:session'$di->lazyNew('Aura\Session\Session'));

        
/**
         * Aura\Session\CsrfTokenFactory
         */
        
$di->params['Aura\Session\CsrfTokenFactory']['randval'] = $di->lazyNew('Aura\Session\Randval');

        
/**
         * Aura\Session\Session
         */
        
$di->params['Aura\Session\Session'] = array(
            
'segment_factory' => $di->lazyNew('Aura\Session\SegmentFactory'),
            
'csrf_token_factory' => $di->lazyNew('Aura\Session\CsrfTokenFactory'),
            
'cookies' => $_COOKIE,
            
'phpfunc' => $di->lazyNew('Aura\Session\Phpfunc'),
        );

        
/**
         * Aura\Session\Randval
         */
        
$di->params['Aura\Session\Randval']['phpfunc'] = $di->lazyNew('Aura\Session\Phpfunc');

        
/**
         * Aura\Session\Segment
         */
        
$di->params['Aura\Session\Segment'] = array(
            
'session' => $di->lazyGet('aura/session:session'),
        );
    }
}