C:\xampp2_not used\phpMyAdmin\libraries\classes\Di\ServiceItem.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
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
 * Holds the PhpMyAdmin\Di\ServiceItem class
 *
 * @package PhpMyAdmin\Di
 */
namespace PhpMyAdmin\Di;

/**
 * Service manager
 *
 * @package PhpMyAdmin\Di
 */
class ServiceItem extends ReflectorItem
{

    
/** @var mixed */
    
protected $instance;

    
/**
     * Get the instance of the service
     *
     * @param array $params Parameters
     * @return mixed
     */
    
public function get(array $params = array())
    {
        if (!isset(
$this->instance)) {
            
$this->instance $this->invoke();
        }
        return 
$this->instance;
    }
}
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586