forked from orchestral/orchestra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.php
52 lines (43 loc) · 1.33 KB
/
start.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/*
|--------------------------------------------------------------------------
| Orchestra Library
|--------------------------------------------------------------------------
|
| Map Orchestra Library using PSR-0 standard namespace.
*/
Autoloader::namespaces(array(
'Orchestra\Model' => Bundle::path('orchestra').'models'.DS,
'Orchestra' => Bundle::path('orchestra').'libraries'.DS,
));
Autoloader::map(array(
'Orchestra' => Bundle::path('orchestra').'orchestra'.EXT,
));
/*
|--------------------------------------------------------------------------
| Orchestra Dependencies
|--------------------------------------------------------------------------
|
| Add Orchestra helpers function and dependencies
*/
include_once Bundle::path('orchestra').'helpers'.EXT;
include_once Bundle::path('orchestra').'includes'.DS.'dependencies'.EXT;
/*
|--------------------------------------------------------------------------
| Orchestra Events Listener
|--------------------------------------------------------------------------
|
| Lets listen to when Orchestra bundle is started.
*/
Event::listen('laravel.started: orchestra', function ()
{
Orchestra\Core::start();
});
Event::listen('laravel.done', function ()
{
Orchestra\Core::shutdown();
});
Event::listen('orchestra.started: backend', function ()
{
Orchestra\View::$theme = 'backend';
});