Skip to content

Commit beef313

Browse files
committed
Register and start applications.
Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
1 parent 90c82a3 commit beef313

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

start.php

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262

6363
define('FEATHER_DATABASE', 'feather');
6464

65-
$feather['config']->set('laravel: database.connections.' . FEATHER_DATABASE, $feather['config']->get('feather: database'));
65+
$feather['config']->set('laravel: database.connections.' . FEATHER_DATABASE, $feather['config']->get('feather: feather.database'));
6666

6767
$feather['config']->db();
6868

@@ -89,4 +89,16 @@
8989
| logic. Register each of the applications as defined in the configuration
9090
| with the Laravel bundle manager.
9191
|
92-
*/
92+
*/
93+
94+
foreach($feather['config']->get('feather: feather.applications') as $application => $handles)
95+
{
96+
$handles = str_replace('(:feather)', Bundle::option('feather', 'handles'), $handles);
97+
98+
Bundle::register("feather/{$application}", array(
99+
'handles' => $handles,
100+
'location' => "feather/applications/{$application}"
101+
));
102+
103+
starts_with(Request::uri(), $handles) and Bundle::start("feather/{$application}");
104+
}

0 commit comments

Comments
 (0)