protected function doBuild($user, $isApi = false)
    {
        $this->register($user, $isApi);

        $this->container->setAlias(
            $this->alias($user, $isApi),
            $this->definition($user, $isApi)
        );

        return $this->container;
    }
protected function doBuild($user, $isApi = false)
    {
        $this->register($user, $isApi);

        $this->container->setAlias(
            $this->alias($user, $isApi),
            $this->definition($user, $isApi)
        );

        return $this->container;
    }
protected function doBuild ( $ user , $ isApi = false ) { $ this -> register ( $ user , $ isApi ) ; $ this -> container -> setAlias ( $ this -> alias ( $ user , $ isApi ) , $ this -> definition ( $ user , $ isApi ) ) ; return $ this -> container ; }
Wraps the service registration and the alias addtion.

@param string $user  The user name
@param bool   $isApi Flag that tells if it is api version or not

@return ContainerBuilder
Wraps the service registration and the alias addtion .