src/Repositories/ClientRepository.php 1 location
|
@@ 79-89 (lines=11) @@
|
| 76 |
|
/** |
| 77 |
|
* @inheritdoc |
| 78 |
|
*/ |
| 79 |
|
public function bindScopes(string $identifier, array $scopes) |
| 80 |
|
{ |
| 81 |
|
$scopeIdentifiers = []; |
| 82 |
|
foreach ($scopes as $scope) { |
| 83 |
|
/** @var ScopeInterface $scope */ |
| 84 |
|
assert($scope instanceof ScopeInterface); |
| 85 |
|
$scopeIdentifiers[] = $scope->getIdentifier(); |
| 86 |
|
} |
| 87 |
|
|
| 88 |
|
$this->bindScopeIdentifiers($identifier, $scopeIdentifiers); |
| 89 |
|
} |
| 90 |
|
|
| 91 |
|
/** |
| 92 |
|
* @param string $identifier |
src/Repositories/TokenRepository.php 1 location
|
@@ 148-158 (lines=11) @@
|
| 145 |
|
/** |
| 146 |
|
* @inheritdoc |
| 147 |
|
*/ |
| 148 |
|
public function bindScopes(int $identifier, array $scopes) |
| 149 |
|
{ |
| 150 |
|
$scopeIdentifiers = []; |
| 151 |
|
foreach ($scopes as $scope) { |
| 152 |
|
/** @var ScopeInterface $scope */ |
| 153 |
|
assert($scope instanceof ScopeInterface); |
| 154 |
|
$scopeIdentifiers[] = $scope->getIdentifier(); |
| 155 |
|
} |
| 156 |
|
|
| 157 |
|
$this->bindScopeIdentifiers($identifier, $scopeIdentifiers); |
| 158 |
|
} |
| 159 |
|
|
| 160 |
|
/** |
| 161 |
|
* @inheritdoc |