Neos\Flow\Security\Authentication\Token\AbstractToken::setAuthenticationEntryPoint PHP Method

setAuthenticationEntryPoint() public method

Sets the authentication entry point
public setAuthenticationEntryPoint ( Neos\Flow\Security\Authentication\EntryPointInterface $entryPoint ) : void
$entryPoint Neos\Flow\Security\Authentication\EntryPointInterface The authentication entry point
return void
    public function setAuthenticationEntryPoint(EntryPointInterface $entryPoint)
    {
        $this->entryPoint = $entryPoint;
    }

Usage Example

コード例 #1
0
 /**
  * @test
  */
 public function authenticationEntryPointCanBeSetAndRetrieved()
 {
     $entryPoint = new WebRedirect();
     $this->token->setAuthenticationEntryPoint($entryPoint);
     $this->assertSame($entryPoint, $this->token->getAuthenticationEntryPoint());
 }