1 | <?php |
||
16 | class TransportManager |
||
17 | { |
||
18 | protected $transportFactories = []; |
||
19 | |||
20 | /** |
||
21 | * createDefault creates a Transport manager and add the default transports to it. |
||
22 | */ |
||
23 | public static function createDefault() |
||
32 | |||
33 | /** |
||
34 | * add a transport factory to our factory list |
||
35 | * @param TransportFactoryInterface $factory |
||
36 | */ |
||
37 | public function add(TransportFactoryInterface $factory) |
||
41 | |||
42 | /** |
||
43 | * hasTransport determines if there is a transport that handles the |
||
44 | * provided site alias. |
||
45 | */ |
||
46 | public function hasTransport(AliasRecord $siteAlias) |
||
50 | |||
51 | /** |
||
52 | * getTransport returns a transport that is applicable to the provided site alias. |
||
53 | */ |
||
54 | public function getTransport(AliasRecord $siteAlias) |
||
62 | |||
63 | /** |
||
64 | * getTransportFactory returns a factory for the provided site alias. |
||
65 | */ |
||
66 | protected function getTransportFactory(AliasRecord $siteAlias) |
||
75 | } |
||
76 |