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