12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?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);
- }
- }
|