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

/**
 * Class AliasItem
 *
 * @package PhpMyAdmin\Di
 */
class AliasItem implements Item
{

    
/** @var Container */
    
protected $container;

    
/** @var string */
    
protected $target;

    
/**
     * Constructor
     *
     * @param Container $container Container
     * @param string    $target    Target
     */
    
public function __construct(Container $container$target)
    {
        
$this->container $container;
        
$this->target $target;
    }

    
/**
     * Get the target item
     *
     * @param array $params Parameters
     * @return mixed
     */
    
public function get(array $params = array())
    {
        return 
$this->container->get($this->target$params);
    }
}
x

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