This repository has been archived by the owner on Sep 19, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
start.php
89 lines (76 loc) · 2.91 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?php
$orchestra = Bundle::path('orchestra');
/*
|--------------------------------------------------------------------------
| Orchestra Library
|--------------------------------------------------------------------------
|
| Map Orchestra Library using PSR-0 standard namespace.
|
*/
Autoloader::namespaces(array(
'Orchestra\Model' => $orchestra.'models/',
'Orchestra\Presenter' => $orchestra.'presenters/',
'Orchestra\Support' => $orchestra.'supports/',
'Orchestra\Testable' => $orchestra.'tests/testable/',
'Orchestra' => $orchestra.'libraries/',
));
Autoloader::map(array(
// Facade for Orchestra\Core
'Orchestra' => $orchestra.'orchestra.php',
// Exceptions
'Orchestra\Extension\UnresolvedException'
=> $orchestra.'libraries/extension/exceptions.php',
'Orchestra\Extension\FilePermissionException'
=> $orchestra.'libraries/extension/exceptions.php',
'Orchestra\Support\FTP\RuntimeException'
=> $orchestra.'supports/ftp/exceptions.php',
'Orchestra\Support\FTP\ServerException'
=> $orchestra.'supports/ftp/exceptions.php',
));
/*
|--------------------------------------------------------------------------
| Map Orchestra\Support Classes as Orchestra
|--------------------------------------------------------------------------
|
| This would allow user to access Orchestra namespace without having to
| know Orchestra\Support.
|
*/
Autoloader::alias('Orchestra\Support\Acl', 'Orchestra\Acl');
Autoloader::alias('Orchestra\Support\Auth', 'Orchestra\Auth');
Autoloader::alias('Orchestra\Support\Fluent', 'Orchestra\Fluent');
Autoloader::alias('Orchestra\Support\Form', 'Orchestra\Form');
Autoloader::alias('Orchestra\Support\HTML', 'Orchestra\HTML');
Autoloader::alias('Orchestra\Support\Memory', 'Orchestra\Memory');
Autoloader::alias('Orchestra\Support\Messages', 'Orchestra\Messages');
Autoloader::alias('Orchestra\Support\Site', 'Orchestra\Site');
Autoloader::alias('Orchestra\Support\Decorator', 'Orchestra\Decorator');
Autoloader::alias('Orchestra\Support\Table', 'Orchestra\Table');
/*
|--------------------------------------------------------------------------
| 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 $orchestra.'helpers.php';
include_once $orchestra.'includes/dependencies.php';
include_once $orchestra.'includes/events.php';
include_once $orchestra.'includes/macros.php';
/*
|--------------------------------------------------------------------------
| Start Your Engine
|--------------------------------------------------------------------------
*/
Orchestra\Core::start();