public function register(array $post)
    {
        /* @var $form RegisterForm */
        $form = $this->getForm(RegisterForm::class);

        $model = $this->getModel();
        $model->setRole('registered');

        $form->setHydrator($this->getHydrator());
        $form->bind($model);

        /* @var $inputFilter \UthandoUser\InputFilter\UserInputFilter */
        $inputFilter = $this->getInputFilter();
        $form->setInputFilter($inputFilter);

        return $this->add($post, $form);
    }
public function register(array $post)
    {
        /* @var $form RegisterForm */
        $form = $this->getForm(RegisterForm::class);

        $model = $this->getModel();
        $model->setRole('registered');

        $form->setHydrator($this->getHydrator());
        $form->bind($model);

        /* @var $inputFilter \UthandoUser\InputFilter\UserInputFilter */
        $inputFilter = $this->getInputFilter();
        $form->setInputFilter($inputFilter);

        return $this->add($post, $form);
    }
public function register ( array $ post ) { /* @var $form RegisterForm */ $ form = $ this -> getForm ( RegisterForm :: class ) ; $ model = $ this -> getModel ( ) ; $ model -> setRole ( 'registered' ) ; $ form -> setHydrator ( $ this -> getHydrator ( ) ) ; $ form -> bind ( $ model ) ; /* @var $inputFilter \UthandoUser\InputFilter\UserInputFilter */ $ inputFilter = $ this -> getInputFilter ( ) ; $ form -> setInputFilter ( $ inputFilter ) ; return $ this -> add ( $ post , $ form ) ; }
Registers a new user

@param array $post
@return int|Form
@throws \UthandoCommon\Service\ServiceException
Registers a new user