@@ -53,6 +53,17 @@ public function __construct() {
53
53
'dir ' => array ('core ' , 'third_party ' ),
54
54
'msg ' => 'See https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc ' ,
55
55
),
56
+ 'ion-auth ' => array (
57
+ 'site ' => 'github ' ,
58
+ 'user ' => 'benedmunds ' ,
59
+ 'repos ' => 'CodeIgniter-Ion-Auth ' ,
60
+ 'name ' => 'Codeigniter Matches CLI ' ,
61
+ 'dir ' => array (
62
+ 'config ' , 'controllers ' , 'language ' , 'libraries ' ,
63
+ 'migrations ' , 'models ' , 'sql ' , 'views '
64
+ ),
65
+ 'msg ' => 'See http://benedmunds.com/ion_auth/ ' ,
66
+ ),
56
67
];
57
68
}
58
69
@@ -74,6 +85,7 @@ public function usage($self)
74
85
$ msg .= " php $ self matches-cli master " . PHP_EOL ;
75
86
$ msg .= " php $ self hmvc-modules master " . PHP_EOL ;
76
87
$ msg .= " php $ self modular-extensions-hmvc codeigniter-3.x " . PHP_EOL ;
88
+ $ msg .= " php $ self ion-auth 2 " . PHP_EOL ;
77
89
78
90
return $ msg ;
79
91
}
@@ -126,6 +138,7 @@ private function downloadFromGithub($package, $version)
126
138
127
139
foreach ($ dir as $ directory ) {
128
140
$ src [] = realpath (dirname ($ filepath ) . "/ $ repos- $ version/ $ directory " );
141
+ @mkdir (__DIR__ . "/../application/ $ directory " );
129
142
$ dst [] = realpath (__DIR__ . "/../application/ $ directory " );
130
143
}
131
144
return [$ src , $ dst ];
@@ -150,6 +163,7 @@ private function downloadFromBitbucket($package, $version)
150
163
151
164
foreach ($ dir as $ directory ) {
152
165
$ src [] = realpath (dirname ($ filepath ) . "/ $ dirname/ $ directory " );
166
+ @mkdir (__DIR__ . "/../application/ $ directory " );
153
167
$ dst [] = realpath (__DIR__ . "/../application/ $ directory " );
154
168
}
155
169
return [$ src , $ dst ];
0 commit comments