We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cc84e9 commit b5a6db0Copy full SHA for b5a6db0
src/Endpoint/Projects.php
@@ -15,11 +15,15 @@ protected function getEndpoint()
15
*
16
* @return array
17
*/
18
- public function all()
+ public function all(int $recursion = 0)
19
{
20
$projects = [];
21
+ $config = [];
22
+ if ($recursion > 0) {
23
+ $config["recursion"] = $recursion;
24
+ }
25
- foreach ($this->get($this->getEndpoint()) as $project) {
26
+ foreach ($this->get($this->getEndpoint(), $config) as $project) {
27
$x = str_replace('/'.$this->client->getApiVersion().$this->getEndpoint(), '', $project);
28
$x = str_replace('?project=' . $this->client->getProject(), '', $x);
29
0 commit comments