forked from orchestral/orchestra
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.php
More file actions
60 lines (50 loc) · 1.84 KB
/
start.php
File metadata and controls
60 lines (50 loc) · 1.84 KB
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
53
54
55
56
57
58
59
60
<?php
/*
|--------------------------------------------------------------------------
| Orchestra Library
|--------------------------------------------------------------------------
|
| Map Orchestra Library using PSR-0 standard namespace.
|
*/
Autoloader::namespaces(array(
'Orchestra\Model' => Bundle::path('orchestra').'models'.DS,
'Orchestra\Presenter' => Bundle::path('orchestra').'presenters'.DS,
'Orchestra' => Bundle::path('orchestra').'libraries'.DS,
));
Autoloader::map(array(
// Facade for Orchestra\Core
'Orchestra' => Bundle::path('orchestra').'orchestra'.EXT,
// Exceptions
'Orchestra\Extension\UnresolvedException'
=> Bundle::path('orchestra').'libraries'.DS.'extension'.DS.'exceptions'.EXT,
'Orchestra\Extension\FilePermissionException'
=> Bundle::path('orchestra').'libraries'.DS.'extension'.DS.'exceptions'.EXT,
));
/*
|--------------------------------------------------------------------------
| Set default path for extension.
|--------------------------------------------------------------------------
|
| Allow path('orchestra.extension') default path to be customizable.
|
*/
set_path('orchestra.extension', path('bundle'));
/*
|--------------------------------------------------------------------------
| Orchestra Dependencies
|--------------------------------------------------------------------------
|
| Add Orchestra helpers function and dependencies.
|
*/
include_once Bundle::path('orchestra').'helpers'.EXT;
include_once Bundle::path('orchestra').'includes'.DS.'dependencies'.EXT;
include_once Bundle::path('orchestra').'includes'.DS.'events'.EXT;
include_once Bundle::path('orchestra').'includes'.DS.'macros'.EXT;
/*
|--------------------------------------------------------------------------
| Start Your Engine
|--------------------------------------------------------------------------
*/
Orchestra\Core::start();