Command/CreateUserCommand.php 1 location
|
@@ 101-114 (lines=14) @@
|
98 |
|
* |
99 |
|
* @return array |
100 |
|
*/ |
101 |
|
private function getAllValidUserClasses() |
102 |
|
{ |
103 |
|
if (count($this->userRepositoryCollection->all()) === 0) { |
104 |
|
throw new NoRepositoriesRegisteredException('No user repositories registered'); |
105 |
|
} |
106 |
|
|
107 |
|
$validClasses = []; |
108 |
|
|
109 |
|
foreach ($this->userRepositoryCollection->all() as $repository) { |
110 |
|
$validClasses[] = $repository->getSupportedClass(); |
111 |
|
} |
112 |
|
|
113 |
|
return $validClasses; |
114 |
|
} |
115 |
|
|
116 |
|
/** |
117 |
|
* Get the repository for the user's Class. |
Command/DeleteUserCommand.php 1 location
|
@@ 95-108 (lines=14) @@
|
92 |
|
* |
93 |
|
* @return array |
94 |
|
*/ |
95 |
|
private function getAllValidUserClasses() |
96 |
|
{ |
97 |
|
if (count($this->userRepositoryCollection->all()) === 0) { |
98 |
|
throw new NoRepositoriesRegisteredException('No user repositories registered'); |
99 |
|
} |
100 |
|
|
101 |
|
$validClasses = []; |
102 |
|
|
103 |
|
foreach ($this->userRepositoryCollection->all() as $repository) { |
104 |
|
$validClasses[] = $repository->getSupportedClass(); |
105 |
|
} |
106 |
|
|
107 |
|
return $validClasses; |
108 |
|
} |
109 |
|
|
110 |
|
/** |
111 |
|
* Get the repository for the user's Class. |