9
9
namespace ActiveCollab \Authentication \Authorizer ;
10
10
11
11
use ActiveCollab \Authentication \AuthenticatedUser \RepositoryInterface ;
12
+ use ActiveCollab \Authentication \Authorizer \ExceptionAware \ExceptionAwareInterface ;
13
+ use ActiveCollab \Authentication \Authorizer \ExceptionProcessor \ExceptionAwareProcessor as ExceptionAware ;
14
+ use ActiveCollab \Authentication \Authorizer \ExceptionProcessor \ExceptionAwareProcessorInterface ;
12
15
use ActiveCollab \Authentication \Authorizer \RequestAware \RequestAware ;
13
16
use ActiveCollab \Authentication \Authorizer \RequestAware \RequestAwareInterface ;
14
17
use ActiveCollab \Authentication \Authorizer \RequestProcessor \RequestProcessorInterface ;
18
21
/**
19
22
* @package ActiveCollab\Authentication\Authorizer
20
23
*/
21
- class SamlAuthorizer extends Authorizer implements RequestAwareInterface
24
+ class SamlAuthorizer extends Authorizer implements RequestAwareInterface, ExceptionAwareProcessorInterface
22
25
{
23
- use RequestAware;
26
+ use RequestAware, ExceptionAware ;
24
27
25
28
/**
26
29
* @var RepositoryInterface
@@ -30,11 +33,13 @@ class SamlAuthorizer extends Authorizer implements RequestAwareInterface
30
33
/**
31
34
* @param RepositoryInterface $user_repository
32
35
* @param RequestProcessorInterface $request_processor
36
+ * @param ExceptionAwareInterface $exception_processor
33
37
*/
34
- public function __construct (RepositoryInterface $ user_repository , RequestProcessorInterface $ request_processor = null )
38
+ public function __construct (RepositoryInterface $ user_repository , RequestProcessorInterface $ request_processor = null , ExceptionAwareInterface $ exception_processor = null )
35
39
{
36
40
$ this ->user_repository = $ user_repository ;
37
41
$ this ->setRequestProcessor ($ request_processor );
42
+ $ this ->setExceptionProcessor ($ exception_processor );
38
43
}
39
44
40
45
/**
0 commit comments