lib/EditableContainer.php
public function get($id)
    {
        $id = (string) $id;

        if (!$this->has($id)) {
            throw new NotFoundException(sprintf('The item with identifier "%s" was not found.', $id));
        }

        return $this->items[$id];
    }
public function get($id)
    {
        $id = (string) $id;

        if (!$this->has($id)) {
            throw new NotFoundException(sprintf('The item with identifier "%s" was not found.', $id));
        }

        return $this->items[$id];
    }
public function get ( $ id ) { $ id = ( string ) $ id ; if ( ! $ this -> has ( $ id ) ) { throw new NotFoundException ( sprintf ( 'The item with identifier "%s" was not found.' , $ id ) ) ; } return $ this -> items [ $ id ] ; }
Returns the value of the item with given name.

@param string $id The name of the item

@return mixed

@throws NotFoundException if no entry was found for this identifier.
@throws ContainerException for errors while retrieving the entry.
@throws InvalidArgumentException if the item name is invalid.
Returns the value of the item with given name .