-
Notifications
You must be signed in to change notification settings - Fork 20
/
kanon-autoload.php
158 lines (158 loc) · 8.05 KB
/
kanon-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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<?php
$dirname = dirname(__FILE__).'/';
require_once $dirname.'src/common/kanon.php';
require_once $dirname.'src/common/functions/is_php.php';
kanon::registerAutoload(array(
'CircularReferenceException'=>'src/common/gc/gc.php',
'application'=>'src/mvc-controller/application.php',
'applicationRegistry'=>'src/mvc-controller/applicationRegistry.php',
'booleanProperty'=>'src/mvc-model/properties/booleanProperty.php',
'checkboxInput'=>'src/forms/controls/checkboxInput.php',
'commentPrototype'=>'src/mvc-model/behaviors/models/commentPrototype.php',
'commentable'=>'src/mvc-model/behaviors/commentable.php',
'control'=>'src/forms/control.php',
'controlSet'=>'src/forms/controlSet.php',
'controller'=>'src/mvc-controller/controller.php',
'controllerPrototype'=>'src/mvc-controller/controllerPrototype.php',
'creationTimestampProperty'=>'src/mvc-model/properties/creationTimestampProperty.php',
'dataSource'=>'incubator/data/interfaces/dataSource.php',
'dateInput'=>'src/forms/controls/dateInput.php',
'documentFilenameProperty'=>'src/mvc-model/properties/documentFilenameProperty.php',
'doubleProperty'=>'src/mvc-model/properties/doubleProperty.php',
'embedProperty'=>'src/mvc-model/properties/embedProperty.php',
'eml'=>'src/net/mail/eml.php',
'event'=>'src/events/event.php',
'eventDispatcher'=>'src/events/eventDispatcher.php',
'extendable'=>'src/common/extension/extendable.php',
'extension'=>'src/common/extension/extension.php',
'fileCache'=>'incubator/files/fileCache.php',
'fileInput'=>'src/forms/controls/fileInput.php',
'fileStorage'=>'src/common/fileStorage.php',
'filename'=>'incubator/data/filename.php',
'floatProperty'=>'src/mvc-model/properties/floatProperty.php',
'form'=>'src/forms/form.php',
'frontController'=>'src/mvc-controller/frontController.php',
'gdDriver'=>'src/media/drivers/gdDriver.php',
'htmlTextarea'=>'src/forms/controls/htmlTextarea.php',
'idProperty'=>'src/mvc-model/properties/idProperty.php',
'image'=>'src/media/image.php',
'imageDriver'=>'src/media/imageDriver.php',
'imageFileInput'=>'src/forms/controls/imageFileInput.php',
'imageFilenameProperty'=>'src/mvc-model/properties/imageFilenameProperty.php',
'imagickDriver'=>'src/media/drivers/imagickDriver.php',
'inflector'=>'incubator/inflector/inflector.php',
'inputFile'=>'incubator/simpleStorage/inputFile.php',
'inputResource'=>'incubator/simpleStorage/inputResource.php',
'integerProperty'=>'src/mvc-model/properties/integerProperty.php',
'kanon'=>'src/common/kanon.php',
'kanonExceptionHandler'=>'src/common/handlers/kanonExceptionHandler.php',
'l10n'=>'src/intl/l10n.php',
'l10nLanguage'=>'src/intl/l10nLanguage.php',
'l10nMessage'=>'src/intl/l10nMessage.php',
'l10nWord'=>'src/intl/l10nWord.php',
'listController'=>'src/mvc-controller/listController.php',
'magic'=>'src/common/magic.php',
'mediaFilenameProperty'=>'src/mvc-model/properties/mediaFilenameProperty.php',
'mobile'=>'incubator/mobile/mobile.php',
'model'=>'src/mvc-model/model.php',
'modelAggregation'=>'src/mvc-model/modelAggregation.php',
'modelBehavior'=>'src/mvc-model/modelBehavior.php',
'modelCache'=>'src/mvc-model/cache/modelCache.php',
'modelCollection'=>'src/mvc-model/modelCollection.php',
'modelExpression'=>'src/mvc-model/modelExpression.php',
'modelField'=>'src/mvc-model/modelField.php',
'modelIterator'=>'src/mvc-model/modelIterator.php',
'modelProperty'=>'src/mvc-model/modelProperty.php',
'modelQueryBuilder'=>'src/mvc-model/modelQueryBuilder.php',
'modelResultSet'=>'src/mvc-model/modelResultSet.php',
'modelResultSetIterator'=>'src/mvc-model/modelResultSetIterator.php',
'modelStorage'=>'src/mvc-model/modelStorage.php',
'modificationTimestampProperty'=>'src/mvc-model/properties/modificationTimestampProperty.php',
'module'=>'src/common/module.php',
'mysqlDriver'=>'src/mvc-model/storageDrivers/mysqlDriver.php',
'nokogiri'=>'src/parse/nokogiri.php',
'nullObject'=>'src/common/nullObject.php',
'objectDecorator'=>'incubator/decorator/decorator.php',
'passwordHashProperty'=>'src/mvc-model/properties/passwordHashProperty.php',
'passwordInput'=>'src/forms/controls/passwordInput.php',
'pdoDriver'=>'src/mvc-model/storageDrivers/pdoDriver.php',
'phone'=>'incubator/social/contacts/phone.php',
'plugin'=>'src/common/plugin/plugin.php',
'plugins'=>'src/common/plugin/plugins.php',
'point'=>'src/2d/point.php',
'profiler'=>'src/common/profiler/profiler.php',
'randomHashProperty'=>'src/mvc-model/properties/randomHashProperty.php',
'rectangle'=>'src/2d/rectangle.php',
'registry'=>'src/common/registry.php',
'request'=>'src/common/http/request.php',
'response'=>'src/common/http/response/response.php',
'restClient'=>'src/net/restClient.php',
'ruLanguage'=>'src/intl/ru/ruLanguage.php',
'ruPlural'=>'src/intl/ru/ruPlural.php',
'ruStemmer'=>'src/intl/ru/stemmer.php',
'scaffoldModelCollectionController'=>'incubator/scaffolding/scaffoldCollectionController.php',
'selectControl'=>'src/forms/controls/selectControl.php',
'serviceController'=>'src/mvc-controller/serviceController.php',
'shape'=>'src/2d/shape.php',
'simpleStorage'=>'incubator/simpleStorage/simpleStorage.php',
'simpleStorageBucket'=>'incubator/simpleStorage/simpleStorageBucket.php',
'simpleStorageDriver'=>'incubator/simpleStorage/simpleStorageDriver.php',
'simpleStorageGoogleStorageDriver'=>'incubator/simpleStorage/drivers/simpleStorageGoogleStorageDriver.php',
'simpleStorageInput'=>'incubator/simpleStorage/simpleStorageInput.php',
'simpleStorageLocalDriver'=>'incubator/simpleStorage/drivers/simpleStorageLocalDriver.php',
'simpleStorageObject'=>'incubator/simpleStorage/simpleStorageObject.php',
'storageDriver'=>'src/mvc-model/storageDriver.php',
'storageRegistry'=>'src/mvc-model/storageRegistry.php',
'stringProperty'=>'src/mvc-model/properties/stringProperty.php',
'textInput'=>'src/forms/controls/textInput.php',
'textProperty'=>'src/mvc-model/properties/textProperty.php',
'textarea'=>'src/forms/controls/textarea.php',
'thumbnail'=>'src/media/thumbnail.php',
'thumbnailer'=>'src/media/thumbnailer.php',
'timestampProperty'=>'src/mvc-model/properties/timestampProperty.php',
'timestampable'=>'src/mvc-model/behaviors/timestampable.php',
'uri'=>'src/common/uri.php',
'url'=>'incubator/data/url.php',
'uuid'=>'incubator/uuid/uuid.php',
'versionProperty'=>'src/mvc-model/properties/versionProperty.php',
'versionableBehavior'=>'src/mvc-model/behaviors/versionableBehavior.php',
'view'=>'src/mvc-view/view.php',
'widgetController'=>'src/mvc-controller/widgetController.php',
'widgets'=>'incubator/widgets/widgets.php',
'yBase58'=>'incubator/types/yBase58.php',
'yBinary'=>'incubator/types/yBinary.php',
'yHex'=>'incubator/types/yHex.php',
'yMath'=>'incubator/math/yMath.php',
'yProfiler'=>'src/common/profiler/yProfiler.php',
'yRuInflector'=>'incubator/inflector/yRuInflector.php',
'ySitemap'=>'src/sitemap/ySitemap.php',
'ySitemapIndex'=>'src/sitemap/ySitemapIndex.php',
'ySitemapIndexController'=>'src/sitemap/controllers/ySitemapIndexController.php',
'ySitemapUrl'=>'src/sitemap/ySitemapUrl.php',
'ySitemapUrlSet'=>'src/sitemap/ySitemapUrlSet.php',
'yString'=>'incubator/types/yString.php',
'zenMysqlRow'=>'src/mvc-model/compat.php'
),$dirname);
register_shutdown_function(array('kanon', 'onShutdown'));
if (function_exists('spl_autoload_register')){
spl_autoload_register(array('kanon', 'autoload'));
spl_autoload_register(array('plugins', 'autoload'));
}else{
function __autoload($name){
if (!kanon::autoload($name)){
plugins::autoload($name);
}
}
}
require_once $dirname.'src/common/destroy.func.php';
require_once $dirname.'src/common/functions/create_class.php';
require_once $dirname.'src/common/functions/dataUri.php';
require_once $dirname.'src/common/functions/phpVarCode.php';
require_once $dirname.'src/common/functions/plugin_loaded.php';
require_once $dirname.'src/common/gc/gc.php';
require_once $dirname.'src/common/handlers/kanonErrorHandler.php';
require_once $dirname.'src/common/keep.func.php';
require_once $dirname.'src/mvc-controller/functions/app.php';
require_once $dirname.'src/net/mail.php';
set_exception_handler(array('kanonExceptionHandler', 'handle'));
set_error_handler('kanonErrorHandler');