Mercurial > hg > cmmr2012-drupal-site
comparison vendor/consolidation/site-process/src/Factory/DockerComposeTransportFactory.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
4:a9cd425dd02b | 5:12f9dff5fda9 |
---|---|
1 <?php | |
2 | |
3 namespace Consolidation\SiteProcess\Factory; | |
4 | |
5 use Consolidation\SiteAlias\SiteAliasInterface; | |
6 use Consolidation\SiteProcess\Transport\DockerComposeTransport; | |
7 use Consolidation\Config\ConfigInterface; | |
8 | |
9 /** | |
10 * DockerComposeTransportFactory will create an DockerComposeTransport for | |
11 * applicable site aliases. | |
12 */ | |
13 class DockerComposeTransportFactory implements TransportFactoryInterface | |
14 { | |
15 /** | |
16 * @inheritdoc | |
17 */ | |
18 public function check(SiteAliasInterface $siteAlias) | |
19 { | |
20 // TODO: deprecate and eventually remove 'isContainer()', and move the logic here. | |
21 return $siteAlias->isContainer(); | |
22 } | |
23 | |
24 /** | |
25 * @inheritdoc | |
26 */ | |
27 public function create(SiteAliasInterface $siteAlias) | |
28 { | |
29 return new DockerComposeTransport($siteAlias); | |
30 } | |
31 } |