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