| @@ 65-79 (lines=15) @@ | ||
| 62 | * @param ResourceStorage $resourceStorage |
|
| 63 | * @param UserMetaStorage $userMetaStorage |
|
| 64 | */ |
|
| 65 | public function __construct( |
|
| 66 | AuthAdapterInterface $authAdapter, |
|
| 67 | AclAdapterInterface $aclAdapter, |
|
| 68 | EnvironmentManager $environmentManager, |
|
| 69 | ApplicationStorage $applicationStorage, |
|
| 70 | ResourceStorage $resourceStorage, |
|
| 71 | UserMetaStorage $userMetaStorage |
|
| 72 | ) { |
|
| 73 | $this->authAdapter = $authAdapter; |
|
| 74 | $this->aclAdapter = $aclAdapter; |
|
| 75 | $this->environmentManager = $environmentManager; |
|
| 76 | $this->applicationStorage = $applicationStorage; |
|
| 77 | $this->resourceStorage = $resourceStorage; |
|
| 78 | $this->userMetaStorage = $userMetaStorage; |
|
| 79 | } |
|
| 80 | ||
| 81 | /** |
|
| 82 | * A middleware is a callable. It can do whatever is appropriate with the Request and Response objects. |
|
| @@ 92-108 (lines=17) @@ | ||
| 89 | * @param ResourceStorage $resourceStorage |
|
| 90 | * @param ApplicationStorage $applicationStorage |
|
| 91 | */ |
|
| 92 | public function __construct( |
|
| 93 | ConfigInterface $configuration, |
|
| 94 | EnvironmentManager $environmentManager, |
|
| 95 | AclAdapterInterface $aclAdapter, |
|
| 96 | AuthAdapterInterface $authAdapter, |
|
| 97 | UserStorage $userStorage, |
|
| 98 | ResourceStorage $resourceStorage, |
|
| 99 | ApplicationStorage $applicationStorage |
|
| 100 | ) { |
|
| 101 | $this->configuration = $configuration; |
|
| 102 | $this->environmentManager = $environmentManager; |
|
| 103 | $this->aclAdapter = $aclAdapter; |
|
| 104 | $this->authAdapter = $authAdapter; |
|
| 105 | $this->userStorage = $userStorage; |
|
| 106 | $this->resourceStorage = $resourceStorage; |
|
| 107 | $this->applicationStorage = $applicationStorage; |
|
| 108 | } |
|
| 109 | ||
| 110 | /** |
|
| 111 | * A renderer helper should be called with its name. |
|