-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathautoload.php
51 lines (48 loc) · 2.74 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
<?php
/*
* Data Object
* https://github.com/ivopetkov/data-object
* Copyright (c) Ivo Petkov
* Free to use under the MIT license.
*/
$classes = array(
'IvoPetkov\DataList' => 'src/DataList.php',
'IvoPetkov\DataListAction' => 'src/DataListAction.php',
'IvoPetkov\DataListActionTrait' => 'src/DataListActionTrait.php',
'IvoPetkov\DataListArrayAccessTrait' => 'src/DataListArrayAccessTrait.php',
'IvoPetkov\DataListContext' => 'src/DataListContext.php',
'IvoPetkov\DataListContextTrait' => 'src/DataListContextTrait.php',
'IvoPetkov\DataListFilterAction' => 'src/DataListFilterAction.php',
'IvoPetkov\DataListFilterActionTrait' => 'src/DataListFilterActionTrait.php',
'IvoPetkov\DataListFilterByAction' => 'src/DataListFilterByAction.php',
'IvoPetkov\DataListFilterByActionTrait' => 'src/DataListFilterByActionTrait.php',
'IvoPetkov\DataListMapAction' => 'src/DataListMapAction.php',
'IvoPetkov\DataListMapActionTrait' => 'src/DataListMapActionTrait.php',
'IvoPetkov\DataListIteratorTrait' => 'src/DataListIteratorTrait.php',
'IvoPetkov\DataListObject' => 'src/DataListObject.php',
'IvoPetkov\DataListReverseAction' => 'src/DataListReverseAction.php',
'IvoPetkov\DataListShuffleAction' => 'src/DataListShuffleAction.php',
'IvoPetkov\DataListSliceAction' => 'src/DataListSliceAction.php',
'IvoPetkov\DataListSliceActionTrait' => 'src/DataListSliceActionTrait.php',
'IvoPetkov\DataListSlicePropertiesAction' => 'src/DataListSlicePropertiesAction.php',
'IvoPetkov\DataListSlicePropertiesActionTrait' => 'src/DataListSlicePropertiesActionTrait.php',
'IvoPetkov\DataListSortAction' => 'src/DataListSortAction.php',
'IvoPetkov\DataListSortActionTrait' => 'src/DataListSortActionTrait.php',
'IvoPetkov\DataListSortByAction' => 'src/DataListSortByAction.php',
'IvoPetkov\DataListSortByActionTrait' => 'src/DataListSortByActionTrait.php',
'IvoPetkov\DataListToArrayTrait' => 'src/DataListToArrayTrait.php',
'IvoPetkov\DataListToJSONTrait' => 'src/DataListToJSONTrait.php',
'IvoPetkov\DataListTrait' => 'src/DataListTrait.php',
'IvoPetkov\DataObject' => 'src/DataObject.php',
'IvoPetkov\DataObjectArrayAccessTrait' => 'src/DataObjectArrayAccessTrait.php',
'IvoPetkov\DataObjectFromArrayTrait' => 'src/DataObjectFromArrayTrait.php',
'IvoPetkov\DataObjectFromJSONTrait' => 'src/DataObjectFromJSONTrait.php',
'IvoPetkov\DataObjectToArrayTrait' => 'src/DataObjectToArrayTrait.php',
'IvoPetkov\DataObjectToJSONTrait' => 'src/DataObjectToJSONTrait.php',
'IvoPetkov\DataObjectTrait' => 'src/DataObjectTrait.php'
);
spl_autoload_register(function ($class) use ($classes): void {
if (isset($classes[$class])) {
require __DIR__ . '/' . $classes[$class];
}
}, true);