1 | <?php |
||
13 | class DeploystrategyFactory |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * @var ProjectConfig |
||
18 | */ |
||
19 | protected $config; |
||
20 | |||
21 | /** |
||
22 | * @var array |
||
23 | */ |
||
24 | protected static $strategies = array( |
||
25 | 'copy' => '\MagentoHackathon\Composer\Magento\Deploystrategy\Copy', |
||
26 | 'symlink' => '\MagentoHackathon\Composer\Magento\Deploystrategy\Symlink', |
||
27 | 'link' => '\MagentoHackathon\Composer\Magento\Deploystrategy\Link', |
||
28 | 'none' => '\MagentoHackathon\Composer\Magento\Deploystrategy\None', |
||
29 | ); |
||
30 | |||
31 | /** |
||
32 | * @param ProjectConfig $config |
||
33 | */ |
||
34 | 12 | public function __construct(ProjectConfig $config) |
|
38 | |||
39 | /** |
||
40 | * @param PackageInterface $package |
||
41 | * @param string $packageSourcePath |
||
42 | * @return DeploystrategyAbstract |
||
43 | */ |
||
44 | 6 | public function make(PackageInterface $package, $packageSourcePath) |
|
66 | } |
||
67 |