Neos\Flow\Security\Authorization\Interceptor\RequireAuthentication::invoke PHP Method

invoke() public method

Invokes the the authentication, if needed.
public invoke ( ) : boolean
return boolean TRUE if the security checks was passed
    public function invoke()
    {
        $this->authenticationManager->authenticate();
    }

Usage Example

コード例 #1
0
 /**
  * @test
  */
 public function invokeCallsTheAuthenticationManagerToPerformAuthentication()
 {
     $authenticationManager = $this->createMock(AuthenticationManagerInterface::class);
     $authenticationManager->expects($this->once())->method('authenticate');
     $interceptor = new RequireAuthentication($authenticationManager);
     $interceptor->invoke();
 }
RequireAuthentication