1 | <?php |
||
17 | class TransportManager |
||
18 | { |
||
19 | protected $transportFactories = []; |
||
20 | |||
21 | /** |
||
22 | * createDefault creates a Transport manager and add the default transports to it. |
||
23 | */ |
||
24 | public static function createDefault() |
||
33 | |||
34 | /** |
||
35 | * Return a site process configured with an appropriate transport |
||
36 | * |
||
37 | * @return Process |
||
38 | */ |
||
39 | public function siteProcess(AliasRecord $siteAlias, $args = [], $options = [], $optionsPassedAsArgs = []) |
||
45 | |||
46 | /** |
||
47 | * add a transport factory to our factory list |
||
48 | * @param TransportFactoryInterface $factory |
||
49 | */ |
||
50 | public function add(TransportFactoryInterface $factory) |
||
54 | |||
55 | /** |
||
56 | * hasTransport determines if there is a transport that handles the |
||
57 | * provided site alias. |
||
58 | */ |
||
59 | public function hasTransport(AliasRecord $siteAlias) |
||
63 | |||
64 | /** |
||
65 | * getTransport returns a transport that is applicable to the provided site alias. |
||
66 | */ |
||
67 | public function getTransport(AliasRecord $siteAlias) |
||
75 | |||
76 | /** |
||
77 | * getTransportFactory returns a factory for the provided site alias. |
||
78 | */ |
||
79 | protected function getTransportFactory(AliasRecord $siteAlias) |
||
88 | } |
||
89 |