@@ 23-38 (lines=16) @@ | ||
20 | ||
21 | class BridgeFactory |
|
22 | { |
|
23 | public static function getChronosBridge( |
|
24 | ApiClientInterface $oApiClient, |
|
25 | CacheInterface $oCache, |
|
26 | JobValidatorServiceInterface $oJobEntityValidatorService, |
|
27 | LoggerInterface $oLogger |
|
28 | ) { |
|
29 | if ($oApiClient->ping()) { |
|
30 | return new BridgeChronos( |
|
31 | $oApiClient, |
|
32 | $oCache, |
|
33 | $oJobEntityValidatorService, |
|
34 | $oLogger); |
|
35 | } |
|
36 | ||
37 | return new DummyBridge($oLogger); |
|
38 | } |
|
39 | ||
40 | public static function getMarathonBridge( |
|
41 | ApiClientInterface $oApiClient, |
|
@@ 40-55 (lines=16) @@ | ||
37 | return new DummyBridge($oLogger); |
|
38 | } |
|
39 | ||
40 | public static function getMarathonBridge( |
|
41 | ApiClientInterface $oApiClient, |
|
42 | CacheInterface $oCache, |
|
43 | JobValidatorServiceInterface $oJobEntityValidatorService, |
|
44 | LoggerInterface $oLogger |
|
45 | ) { |
|
46 | if ($oApiClient->ping()) { |
|
47 | return new BridgeMarathon( |
|
48 | $oApiClient, |
|
49 | $oCache, |
|
50 | $oJobEntityValidatorService, |
|
51 | $oLogger); |
|
52 | } |
|
53 | ||
54 | return new DummyBridge($oLogger); |
|
55 | } |
|
56 | ||
57 | ||
58 | public static function getFilesystemBridge( |