Xpressengine\Register\Container::get PHP Method

get() public method

Get the specified configuration value.
public get ( string $key, mixed $default = null ) : mixed
$key string key
$default mixed default value
return mixed
    public function get($key, $default = null)
    {
        $class = $this->arrClass;
        return $class::get($this->items, $key, $default);
    }

Usage Example

 public function testAdd()
 {
     $container = new Container('\\Illuminate\\Support\\Arr');
     $key = 'uiobject/xpressengine@select';
     $container->add($key, 'My\\Class\\Select');
     $this->assertEquals('My\\Class\\Select', $container->get($key));
 }
All Usage Examples Of Xpressengine\Register\Container::get