Skip to content
This repository was archived by the owner on Jun 25, 2025. It is now read-only.

Commit 6b29d4c

Browse files
committed
Added configuration in app repository bucket
1 parent e66c295 commit 6b29d4c

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

App/AppRepositoryBucket.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,23 @@ class AppRepositoryBucket
2828
*/
2929
private $repositories = [];
3030

31+
/**
32+
* @var array
33+
*
34+
* Repositories configuration
35+
*/
36+
private $configuration;
37+
38+
/**
39+
* AppRepositoryBucket constructor.
40+
*
41+
* @param array $configuration
42+
*/
43+
public function __construct(array $configuration)
44+
{
45+
$this->configuration = $configuration;
46+
}
47+
3148
/**
3249
* Add repository.
3350
*
@@ -54,4 +71,14 @@ public function findRepository(string $appName): ? AppRepository
5471
? $this->repositories[$appName]
5572
: null;
5673
}
74+
75+
/**
76+
* Get configuration
77+
*
78+
* @return array
79+
*/
80+
public function getConfiguration() : array
81+
{
82+
return $this->configuration;
83+
}
5784
}

0 commit comments

Comments
 (0)