public function get($name)
    {
        $item = $this->getFactory($name)->get();

        if ($item instanceof ContainerAwareInterface) {
            $item->setContainer($this);
        }

        return $item;
    }
public function get($name)
    {
        $item = $this->getFactory($name)->get();

        if ($item instanceof ContainerAwareInterface) {
            $item->setContainer($this);
        }

        return $item;
    }
public function get ( $ name ) { $ item = $ this -> getFactory ( $ name ) -> get ( ) ; if ( $ item instanceof ContainerAwareInterface ) { $ item -> setContainer ( $ this ) ; } return $ item ; }
Fetch object from container

@param string $name
@throws \ReflectionException
@throws \Janeiro\Di\Exception
@throws \Janeiro\Di\NotFoundException
@return mixed
Fetch object from container