1 | <?php |
||
37 | class MainJsonConfiguration implements MainConfigurationInterface |
||
38 | { |
||
39 | /** |
||
40 | * Hold's the data instance read by json file |
||
41 | * |
||
42 | * @var \stdClass |
||
43 | */ |
||
44 | protected $data; |
||
45 | |||
46 | /** |
||
47 | * Constructs the config by given filename |
||
48 | * |
||
49 | * @param string $filename The filename to init the config with |
||
50 | */ |
||
51 | public function __construct($filename) |
||
55 | |||
56 | /** |
||
57 | * Return's an array of server configs |
||
58 | * |
||
59 | * @return ServerConfigurationInterface[] |
||
60 | */ |
||
61 | public function getServerConfigs() |
||
70 | |||
71 | /** |
||
72 | * Return's an array of logger configs |
||
73 | * |
||
74 | * @return LoggerConfigurationInterface[] |
||
75 | */ |
||
76 | public function getLoggerConfigs() |
||
85 | |||
86 | /** |
||
87 | * Return's upstream config nodes as array |
||
88 | * |
||
89 | * @return UpstreamConfigurationInterface[] |
||
90 | */ |
||
91 | public function getUpstreamConfigs() |
||
95 | } |
||
96 |