<?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; } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
AliasItem.php | File | 857 B | 0644 |
|
Container.php | File | 4.39 KB | 0644 |
|
ContainerException.php | File | 378 B | 0644 |
|
FactoryItem.php | File | 476 B | 0644 |
|
Item.php | File | 390 B | 0644 |
|
NotFoundException.php | File | 367 B | 0644 |
|
ReflectorItem.php | File | 3.54 KB | 0644 |
|
ServiceItem.php | File | 616 B | 0644 |
|
ValueItem.php | File | 643 B | 0644 |
|