|
@@ 78-89 (lines=12) @@
|
| 75 |
|
/** |
| 76 |
|
* @return Field[] |
| 77 |
|
*/ |
| 78 |
|
public function getQueries(): array |
| 79 |
|
{ |
| 80 |
|
$queryList = []; |
| 81 |
|
|
| 82 |
|
foreach ($this->controllers as $controllerName) { |
| 83 |
|
$controller = $this->container->get($controllerName); |
| 84 |
|
$queryProvider = new ControllerQueryProvider($controller, $this->annotationReader, $this->typeMapper, $this->hydrator, $this->authenticationService, $this->authorizationService); |
| 85 |
|
$queryList = array_merge($queryList, $queryProvider->getQueries()); |
| 86 |
|
} |
| 87 |
|
|
| 88 |
|
return $queryList; |
| 89 |
|
} |
| 90 |
|
|
| 91 |
|
/** |
| 92 |
|
* @return Field[] |
|
@@ 94-105 (lines=12) @@
|
| 91 |
|
/** |
| 92 |
|
* @return Field[] |
| 93 |
|
*/ |
| 94 |
|
public function getMutations(): array |
| 95 |
|
{ |
| 96 |
|
$mutationList = []; |
| 97 |
|
|
| 98 |
|
foreach ($this->controllers as $controllerName) { |
| 99 |
|
$controller = $this->container->get($controllerName); |
| 100 |
|
$queryProvider = new ControllerQueryProvider($controller, $this->annotationReader, $this->typeMapper, $this->hydrator); |
| 101 |
|
$mutationList = array_merge($mutationList, $queryProvider->getMutations()); |
| 102 |
|
} |
| 103 |
|
|
| 104 |
|
return $mutationList; |
| 105 |
|
} |
| 106 |
|
} |
| 107 |
|
|