public function register($port)
    {
        if (is_string($port)) {
            $port = resolve($port);
        }

        $this->ports->push($port);

        return $port;
    }
public function register($port)
    {
        if (is_string($port)) {
            $port = resolve($port);
        }

        $this->ports->push($port);

        return $port;
    }
public function register ( $ port ) { if ( is_string ( $ port ) ) { $ port = resolve ( $ port ) ; } $ this -> ports -> push ( $ port ) ; return $ port ; }
Register the port, resolve if class name is provided
and return the resolved instance.

@param \SuperV\Platform\Domains\Port\Port $port
@return mixed
Register the port resolve if class name is provided and return the resolved instance .