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