@@ 35-45 (lines=11) @@ | ||
32 | return self::$container->get($id); |
|
33 | } |
|
34 | ||
35 | public static function developmentServer(): DevelopmentServer |
|
36 | { |
|
37 | try { |
|
38 | /** @var DevelopmentServer $server */ |
|
39 | $server = self::get(DevelopmentServer::class); |
|
40 | ||
41 | return $server; |
|
42 | } catch (ParameterNotFoundException $e) { |
|
43 | throw InvalidConfiguration::missingParameter($e->getKey()); |
|
44 | } |
|
45 | } |
|
46 | ||
47 | public static function productionServer(): ProductionServer |
|
48 | { |
|
@@ 47-57 (lines=11) @@ | ||
44 | } |
|
45 | } |
|
46 | ||
47 | public static function productionServer(): ProductionServer |
|
48 | { |
|
49 | try { |
|
50 | /** @var ProductionServer $server */ |
|
51 | $server = self::get(ProductionServer::class); |
|
52 | ||
53 | return $server; |
|
54 | } catch (ParameterNotFoundException $e) { |
|
55 | throw InvalidConfiguration::missingParameter($e->getKey()); |
|
56 | } |
|
57 | } |
|
58 | ||
59 | protected static function loadConfig() |
|
60 | { |