-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautoload.php
68 lines (56 loc) · 1.69 KB
/
autoload.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
<?php
$rootPath = __DIR__ . '/';
$morphablePath = $rootPath . 'src/Morphable/';
$databasePath = $morphablePath . 'Database/';
$consolePath = $morphablePath . 'Console/';
require $morphablePath . 'AutoLoader.php';
$autoloader = new Morphable\Autoloader;
/**
* Require Exceptions
*/
$autoloader->addFolder($morphablePath . 'Exceptions');
$autoloader->addFile($morphablePath . 'Helper.php');
/**
* Require Base
*/
$autoloader->addFile($morphablePath . 'Config.php');
$autoloader->addFile($databasePath . 'Connection.php');
$autoloader->addFile($databasePath . 'Manager.php');
/**
* Require request and response
*/
$httpPath = $morphablePath . 'Http/';
$autoloader->addFolder($httpPath . 'Interfaces');
$autoloader->addFile($httpPath . 'Request.php');
$autoloader->addFile($httpPath . 'Response.php');
/**
* Require Migrations
*/
$migrationsPath = $databasePath . 'Migrations/';
$autoloader->addFile($migrationsPath . 'Schema.php');
$autoloader->addFile($migrationsPath . 'Field.php');
$autoloader->addFile($migrationsPath . 'TableBuilder.php');
/**
* Require Query
*/
$queryPath = $databasePath . 'Query/';
$autoloader->addFile($queryPath . 'Query.php');
$autoloader->addFile($queryPath . 'QueryBuilder.php');
/**
* Require Routing v2
*/
$routingV2 = $morphablePath . 'Routing-v2/';
$autoloader->addFile($routingV2 . "Config.php");
$autoloader->addFile($routingV2 . 'Route.php');
$autoloader->addFile($routingV2 . 'Router.php');
$autoloader->addFile($routingV2 . 'Dispatcher.php');
$autoloader->addFile($routingV2 . 'Controller.php');
/**
* Require Console
*/
$autoloader->addFile($consolePath . 'Console.php');
$autoloader->addFile($consolePath . 'Command.php');
/**
* Execute
*/
$autoloader->autoload();