public function get(string $name)
    {
        $name = $this->getDefinitiveName($name);

        if (!$this->has($name)) {
            $instance = $this->build($name);
            $this->store($instance);
        }

        return $this->instances[$name];
    }
public function get(string $name)
    {
        $name = $this->getDefinitiveName($name);

        if (!$this->has($name)) {
            $instance = $this->build($name);
            $this->store($instance);
        }

        return $this->instances[$name];
    }
public function get ( string $ name ) { $ name = $ this -> getDefinitiveName ( $ name ) ; if ( ! $ this -> has ( $ name ) ) { $ instance = $ this -> build ( $ name ) ; $ this -> store ( $ instance ) ; } return $ this -> instances [ $ name ] ; }
Returns a stored instance or creates a new one and stores it.

@throws ContainerException
Returns a stored instance or creates a new one and stores it .