Respect\Config\Container::get PHP Method

get() public method

public get ( $name )
    public function get($name)
    {
        return $this->getItem($name);
    }

Usage Example

Example #1
0
    /**
     * @expectedException Interop\Container\Exception\NotFoundException
     * @expectedExceptionMessage Item baz not found
     */
    public function testLoadInvalidName()
    {
        $ini = <<<INI
foo = bar
INI;
        $c = new Container();
        $c->loadArray(parse_ini_string($ini, true));
        $c->get('baz');
    }