@@ -37,6 +37,29 @@ public static function postInstallSymlinkTwitterBootstrap(Event $event)
37
37
$ IO ->write (" ... <info>OK</info> " );
38
38
}
39
39
40
+ public static function postInstallMirrorTwitterBootstrap (Event $ event )
41
+ {
42
+ $ IO = $ event ->getIO ();
43
+ $ composer = $ event ->getComposer ();
44
+ $ cmanager = new ComposerPathFinder ($ composer );
45
+ $ options = array (
46
+ 'targetSuffix ' => DIRECTORY_SEPARATOR . "Resources " . DIRECTORY_SEPARATOR . "bootstrap " ,
47
+ 'sourcePrefix ' => '.. ' . DIRECTORY_SEPARATOR . '.. ' . DIRECTORY_SEPARATOR
48
+ );
49
+ list ($ symlinkTarget , $ symlinkName ) = $ cmanager ->getSymlinkFromComposer (
50
+ BootstrapSymlinkLessCommand::$ mopaBootstrapBundleName ,
51
+ BootstrapSymlinkLessCommand::$ twitterBootstrapName ,
52
+ $ options
53
+ );
54
+
55
+ $ IO ->write ("Checking Mirror " , FALSE );
56
+ if (false === BootstrapSymlinkLessCommand::checkSymlink ($ symlinkTarget , $ symlinkName )) {
57
+ $ IO ->write ("Creating Mirror: " . $ symlinkName , FALSE );
58
+ BootstrapSymlinkLessCommand::createMirror ($ symlinkTarget , $ symlinkName );
59
+ }
60
+ $ IO ->write (" ... <info>OK</info> " );
61
+ }
62
+
40
63
public static function postInstallSymlinkTwitterBootstrapSass (Event $ event )
41
64
{
42
65
$ IO = $ event ->getIO ();
@@ -59,4 +82,27 @@ public static function postInstallSymlinkTwitterBootstrapSass(Event $event)
59
82
}
60
83
$ IO ->write (" ... <info>OK</info> " );
61
84
}
85
+
86
+ public static function postInstallMirrorTwitterBootstrapSass (Event $ event )
87
+ {
88
+ $ IO = $ event ->getIO ();
89
+ $ composer = $ event ->getComposer ();
90
+ $ cmanager = new ComposerPathFinder ($ composer );
91
+ $ options = array (
92
+ 'targetSuffix ' => DIRECTORY_SEPARATOR . "Resources " . DIRECTORY_SEPARATOR . "bootstrap-sass " ,
93
+ 'sourcePrefix ' => '.. ' . DIRECTORY_SEPARATOR . '.. ' . DIRECTORY_SEPARATOR
94
+ );
95
+ list ($ symlinkTarget , $ symlinkName ) = $ cmanager ->getSymlinkFromComposer (
96
+ BootstrapSymlinkSassCommand::$ mopaBootstrapBundleName ,
97
+ BootstrapSymlinkSassCommand::$ twitterBootstrapName ,
98
+ $ options
99
+ );
100
+
101
+ $ IO ->write ("Checking Mirror " , FALSE );
102
+ if (false === BootstrapSymlinkSassCommand::checkSymlink ($ symlinkTarget , $ symlinkName )) {
103
+ $ IO ->write (" ... Creating Mirror: " . $ symlinkName , FALSE );
104
+ BootstrapSymlinkSassCommand::createMirror ($ symlinkTarget , $ symlinkName );
105
+ }
106
+ $ IO ->write (" ... <info>OK</info> " );
107
+ }
62
108
}
0 commit comments