| @@ 60-74 (lines=15) @@ | ||
| 57 | * @param Storage\AccessManagement\ResourceStorage $resourceStorage |
|
| 58 | * @param Storage\User\UserMetaStorage $userMetaStorage |
|
| 59 | */ |
|
| 60 | public function __construct( |
|
| 61 | AuthInterface $authAdapter, |
|
| 62 | AclInterface $aclAdapter, |
|
| 63 | EnvironmentInterface $environmentManager, |
|
| 64 | Storage\ApplicationStorage $applicationStorage, |
|
| 65 | Storage\AccessManagement\ResourceStorage $resourceStorage, |
|
| 66 | Storage\User\UserMetaStorage $userMetaStorage |
|
| 67 | ) { |
|
| 68 | $this->authAdapter = $authAdapter; |
|
| 69 | $this->aclAdapter = $aclAdapter; |
|
| 70 | $this->environmentManager = $environmentManager; |
|
| 71 | $this->applicationStorage = $applicationStorage; |
|
| 72 | $this->resourceStorage = $resourceStorage; |
|
| 73 | $this->userMetaStorage = $userMetaStorage; |
|
| 74 | } |
|
| 75 | ||
| 76 | /** |
|
| 77 | * A middleware is a callable. It can do whatever is appropriate with the Request and Response objects. |
|
| @@ 99-113 (lines=15) @@ | ||
| 96 | * @param ResourceStorage $resourceStorage |
|
| 97 | * @param ApplicationStorage $applicationStorage |
|
| 98 | */ |
|
| 99 | public function __construct( |
|
| 100 | ConfigurationInterface $configuration, |
|
| 101 | EnvironmentInterface $environmentManager, |
|
| 102 | AclInterface $aclAdapter, |
|
| 103 | AuthInterface $authAdapter, |
|
| 104 | ResourceStorage $resourceStorage, |
|
| 105 | ApplicationStorage $applicationStorage |
|
| 106 | ) { |
|
| 107 | $this->configuration = $configuration; |
|
| 108 | $this->environmentManager = $environmentManager; |
|
| 109 | $this->aclAdapter = $aclAdapter; |
|
| 110 | $this->authAdapter = $authAdapter; |
|
| 111 | $this->resourceStorage = $resourceStorage; |
|
| 112 | $this->applicationStorage = $applicationStorage; |
|
| 113 | } |
|
| 114 | ||
| 115 | /** |
|
| 116 | * A renderer helper should be called with its name. |
|