src/Service/UserService.php
public function getRegisterForm()
    {
        if (null === $this->registerForm) {
            $sm = $this->getServiceLocator();
            $this->setRegisterForm($sm->getServiceLocator()
                ->get($this->formElementManager)->get('CmsUser\\Form\\Register'));
        }

        return $this->registerForm;
    }
public function getRegisterForm()
    {
        if (null === $this->registerForm) {
            $sm = $this->getServiceLocator();
            $this->setRegisterForm($sm->getServiceLocator()
                ->get($this->formElementManager)->get('CmsUser\\Form\\Register'));
        }

        return $this->registerForm;
    }
{@inheritDoc}