Skip to content

Commit b80ef46

Browse files
committed
Add Ion Auth
1 parent 95264fc commit b80ef46

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ $ php bin/install.php hmvc-modules master
6262
$ php bin/install.php modular-extensions-hmvc codeigniter-3.x
6363
```
6464

65+
[Ion Auth](https://github.com/benedmunds/CodeIgniter-Ion-Auth):
66+
67+
```
68+
$ php bin/install.php ion-auth 2
69+
```
70+
6571
### Run PHP built-in server (PHP 5.4 or later)
6672

6773
```

bin/install.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,17 @@ public function __construct() {
5353
'dir' => array('core', 'third_party'),
5454
'msg' => 'See https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc',
5555
),
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+
),
5667
];
5768
}
5869

@@ -74,6 +85,7 @@ public function usage($self)
7485
$msg .= " php $self matches-cli master" . PHP_EOL;
7586
$msg .= " php $self hmvc-modules master" . PHP_EOL;
7687
$msg .= " php $self modular-extensions-hmvc codeigniter-3.x" . PHP_EOL;
88+
$msg .= " php $self ion-auth 2" . PHP_EOL;
7789

7890
return $msg;
7991
}
@@ -126,6 +138,7 @@ private function downloadFromGithub($package, $version)
126138

127139
foreach ($dir as $directory) {
128140
$src[] = realpath(dirname($filepath) . "/$repos-$version/$directory");
141+
@mkdir(__DIR__ . "/../application/$directory");
129142
$dst[] = realpath(__DIR__ . "/../application/$directory");
130143
}
131144
return [$src, $dst];
@@ -150,6 +163,7 @@ private function downloadFromBitbucket($package, $version)
150163

151164
foreach ($dir as $directory) {
152165
$src[] = realpath(dirname($filepath) . "/$dirname/$directory");
166+
@mkdir(__DIR__ . "/../application/$directory");
153167
$dst[] = realpath(__DIR__ . "/../application/$directory");
154168
}
155169
return [$src, $dst];

0 commit comments

Comments
 (0)