public function addRedirect($postValues)
    {
        $redirectObject = RedirectsFactory::createRedirectFromPostValues($postValues);
        $redirects = $this->repository->redirects;
        $redirects[] = $redirectObject;
        $this->repository->redirects = $redirects;
        $this->save();
    }
public function addRedirect($postValues)
    {
        $redirectObject = RedirectsFactory::createRedirectFromPostValues($postValues);
        $redirects = $this->repository->redirects;
        $redirects[] = $redirectObject;
        $this->repository->redirects = $redirects;
        $this->save();
    }
public function addRedirect ( $ postValues ) { $ redirectObject = RedirectsFactory :: createRedirectFromPostValues ( $ postValues ) ; $ redirects = $ this -> repository -> redirects ; $ redirects [ ] = $ redirectObject ; $ this -> repository -> redirects = $ redirects ; $ this -> save ( ) ; }
Add a new redirect
@param $postValues
Add a new redirect