File tree Expand file tree Collapse file tree 2 files changed +29
-4
lines changed
src/MagentoHackathon/Composer/Magento Expand file tree Collapse file tree 2 files changed +29
-4
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+ /**
3+ * Composer Magento Installer
4+ */
5+
6+ namespace MagentoHackathon \Composer \Magento \Deploystrategy ;
7+
8+ /**
9+ * Absolute Symlink deploy strategy
10+ */
11+ class AbsoluteSymlink extends Symlink
12+ {
13+ /**
14+ * @inheritdoc
15+ */
16+ protected function symlink ($ relSourcePath , $ destPath , $ absSourcePath )
17+ {
18+ // make symlinks always absolute on windows because of #142
19+ if (strtoupper (substr (PHP_OS , 0 , 3 )) == 'WIN ' ) {
20+ $ absSourcePath = str_replace ('/ ' , '\\' , $ absSourcePath );
21+ }
22+ return symlink ($ absSourcePath , $ destPath );
23+ }
24+ }
Original file line number Diff line number Diff line change @@ -22,10 +22,11 @@ class DeploystrategyFactory
2222 * @var array
2323 */
2424 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 ' ,
25+ 'copy ' => '\MagentoHackathon\Composer\Magento\Deploystrategy\Copy ' ,
26+ 'symlink ' => '\MagentoHackathon\Composer\Magento\Deploystrategy\Symlink ' ,
27+ 'absoluteSymlink ' => '\MagentoHackathon\Composer\Magento\Deploystrategy\AbsoluteSymlink ' ,
28+ 'link ' => '\MagentoHackathon\Composer\Magento\Deploystrategy\Link ' ,
29+ 'none ' => '\MagentoHackathon\Composer\Magento\Deploystrategy\None ' ,
2930 );
3031
3132 /**
You can’t perform that action at this time.
0 commit comments