Mercurial > hg > cmmr2012-drupal-site
comparison vendor/consolidation/site-process/src/Factory/VagrantTransportFactory.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\VagrantTransport; | |
7 | |
8 /** | |
9 * VagrantTransportFactory will create a VagrantTransport for applicable site aliases. | |
10 */ | |
11 class VagrantTransportFactory implements TransportFactoryInterface | |
12 { | |
13 /** | |
14 * @inheritdoc | |
15 */ | |
16 public function check(SiteAliasInterface $siteAlias) | |
17 { | |
18 return $siteAlias->has('vagrant'); | |
19 } | |
20 | |
21 /** | |
22 * @inheritdoc | |
23 */ | |
24 public function create(SiteAliasInterface $siteAlias) | |
25 { | |
26 return new VagrantTransport($siteAlias); | |
27 } | |
28 } |