File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
7
7
8
8
# Unreleased
9
9
10
+ ## Added
11
+ - Recursion parameter for getting images (#17 )
12
+
10
13
## Changed
11
14
- Make networks project aware (#16 )
12
15
Original file line number Diff line number Diff line change @@ -18,14 +18,18 @@ protected function getEndpoint()
18
18
*
19
19
* @return array
20
20
*/
21
- public function all ()
21
+ public function all (int $ recursion = 0 )
22
22
{
23
23
$ images = [];
24
24
25
25
$ config = [
26
26
"project " =>$ this ->client ->getProject ()
27
27
];
28
28
29
+ if ($ recursion > 0 ) {
30
+ $ config ["recursion " ] = $ recursion ;
31
+ }
32
+
29
33
foreach ($ this ->get ($ this ->getEndpoint (), $ config ) as $ image ) {
30
34
$ images [] = str_replace ('/ ' .$ this ->client ->getApiVersion ().$ this ->getEndpoint (), '' , $ image );
31
35
}
You can’t perform that action at this time.
0 commit comments