-
Notifications
You must be signed in to change notification settings - Fork 96
/
bootstrap.php
47 lines (42 loc) · 2.01 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
<?php
/**
* Fuel is a fast, lightweight, community driven PHP 5.4+ framework.
*
* @package Fuel
* @version 1.9-dev
* @author Fuel Development Team
* @license MIT License
* @copyright 2010 - 2019 Fuel Development Team
* @link https://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);