forked from fuel/orm
-
Notifications
You must be signed in to change notification settings - Fork 4
/
bootstrap.php
50 lines (44 loc) · 2.04 KB
/
bootstrap.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
<?php
/**
* Fuel
*
* Fuel is a fast, lightweight, community driven PHP5 framework.
*
* @package Fuel
* @version 1.7
* @author Fuel Development Team
* @license MIT License
* @copyright 2010 - 2013 Fuel Development Team
* @link http://fuelphp.com
*/
Autoloader::add_classes(array(
'Orm\\Model' => __DIR__.'/classes/model.php',
'Orm\\Query' => __DIR__.'/classes/query.php',
'Orm\\BelongsTo' => __DIR__.'/classes/belongsto.php',
'Orm\\HasMany' => __DIR__.'/classes/hasmany.php',
'Orm\\HasOne' => __DIR__.'/classes/hasone.php',
'Orm\\ManyMany' => __DIR__.'/classes/manymany.php',
'Orm\\Relation' => __DIR__.'/classes/relation.php',
//Speclised models
'Orm\\Model_Soft' => __DIR__.'/classes/model/soft.php',
'Orm\\Query_Soft' => __DIR__.'/classes/query/soft.php',
'Orm\\Model_Temporal' => __DIR__.'/classes/model/temporal.php',
'Orm\\Query_Temporal' => __DIR__.'/classes/query/temporal.php',
'Orm\\Model_Nestedset' => __DIR__.'/classes/model/nestedset.php',
// Observers
'Orm\\Observer' => __DIR__.'/classes/observer.php',
'Orm\\Observer_CreatedAt' => __DIR__.'/classes/observer/createdat.php',
'Orm\\Observer_Typing' => __DIR__.'/classes/observer/typing.php',
'Orm\\Observer_UpdatedAt' => __DIR__.'/classes/observer/updatedat.php',
'Orm\\Observer_Validation' => __DIR__.'/classes/observer/validation.php',
'Orm\\Observer_Self' => __DIR__.'/classes/observer/self.php',
'Orm\\Observer_Slug' => __DIR__.'/classes/observer/slug.php',
// Exceptions
'Orm\\RecordNotFound' => __DIR__.'/classes/model.php',
'Orm\\FrozenObject' => __DIR__.'/classes/model.php',
'Orm\\InvalidContentType' => __DIR__.'/classes/observer/typing.php',
'Orm\\ValidationFailed' => __DIR__.'/classes/observer/validation.php',
'Orm\\RelationNotSoft' => __DIR__.'/classes/model/soft.php',
));
// Ensure the orm's config is loaded for Temporal
\Config::load('orm', true);