Guest User

Untitled

a guest
Jan 23rd, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.00 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4. * Class aliases for migrating from Nette for PHP 5.2 to 5.3
  5. * @author Michael Moravec
  6. */
  7.  
  8. $aliases = array(
  9. 'application' => 'nette\application\application',
  10. 'routingdebugger' => 'nette\application\diagnostics\routingpanel',
  11. 'ipresenter' => 'nette\application\ipresenter',
  12. 'ipresenterfactory' => 'nette\application\ipresenterfactory',
  13. 'ipresenterresponse' => 'nette\application\iresponse',
  14. 'irouter' => 'nette\application\irouter',
  15. 'micropresenter' => 'nettemodule\micropresenter',
  16. 'presenterfactory' => 'nette\application\presenterfactory',
  17. 'presenterrequest' => 'nette\application\request',
  18. 'fileresponse' => 'nette\application\responses\fileresponse',
  19. 'forwardresponse' => 'nette\application\responses\forwardresponse',
  20. 'jsonresponse' => 'nette\application\responses\jsonresponse',
  21. 'redirectresponse' => 'nette\application\responses\redirectresponse',
  22. 'textresponse' => 'nette\application\responses\textresponse',
  23. 'clirouter' => 'nette\application\routers\clirouter',
  24. 'route' => 'nette\application\routers\route',
  25. 'routelist' => 'nette\application\routers\routelist',
  26. 'simplerouter' => 'nette\application\routers\simplerouter',
  27. 'badsignalexception' => 'nette\application\ui\badsignalexception',
  28. 'control' => 'nette\application\ui\control',
  29. 'appform' => 'nette\application\ui\form',
  30. 'ipartiallyrenderable' => 'nette\application\ui\ipartiallyrenderable',
  31. 'irenderable' => 'nette\application\ui\irenderable',
  32. 'isignalreceiver' => 'nette\application\ui\isignalreceiver',
  33. 'istatepersistent' => 'nette\application\ui\istatepersistent',
  34. 'invalidlinkexception' => 'nette\application\ui\invalidlinkexception',
  35. 'link' => 'nette\application\ui\link',
  36. 'presenter' => 'nette\application\ui\presenter',
  37. 'presentercomponent' => 'nette\application\ui\presentercomponent',
  38. 'presentercomponentreflection' => 'nette\application\ui\presentercomponentreflection',
  39. 'abortexception' => 'nette\application\applicationexception',
  40. 'forbiddenrequestexception' => 'nette\application\abortexception',
  41. 'invalidpresenterexception' => 'nette\application\badrequestexception',
  42. 'badrequestexception' => 'nette\application\forbiddenrequestexception',
  43. 'applicationexception' => 'nette\application\invalidpresenterexception',
  44. 'cache' => 'nette\caching\cache',
  45. 'icachestorage' => 'nette\caching\istorage',
  46. 'cachinghelper' => 'nette\caching\outputhelper',
  47. 'devnullstorage' => 'nette\caching\storages\devnullstorage',
  48. 'filejournal' => 'nette\caching\storages\filejournal',
  49. 'filestorage' => 'nette\caching\storages\filestorage',
  50. 'icachejournal' => 'nette\caching\storages\ijournal',
  51. 'memcachedstorage' => 'nette\caching\storages\memcachedstorage',
  52. 'memorystorage' => 'nette\caching\storages\memorystorage',
  53. 'phpfilestorage' => 'nette\caching\storages\phpfilestorage',
  54. 'component' => 'nette\componentmodel\component',
  55. 'componentcontainer' => 'nette\componentmodel\container',
  56. 'icomponent' => 'nette\componentmodel\icomponent',
  57. 'icomponentcontainer' => 'nette\componentmodel\icontainer',
  58. 'recursivecomponentiterator' => 'nette\componentmodel\recursivecomponentiterator',
  59. 'config' => 'nette\config\config',
  60. 'iconfigadapter' => 'nette\config\iadapter',
  61. 'configadapterini' => 'nette\config\iniadapter',
  62. 'configadapterneon' => 'nette\config\neonadapter',
  63. 'dicontainer' => 'nette\di\container',
  64. 'containerbuilder' => 'nette\di\containerbuilder',
  65. 'idicontainer' => 'nette\di\icontainer',
  66. 'iservicebuilder' => 'nette\di\iservicebuilder',
  67. 'servicebuilder' => 'nette\di\servicebuilder',
  68. 'missingserviceexception' => 'nette\di\missingserviceexception',
  69. 'ambiguousserviceexception' => 'nette\di\ambiguousserviceexception',
  70. 'connection' => 'nette\database\connection',
  71. 'databasepanel' => 'nette\database\diagnostics\connectionpanel',
  72. 'mssqldriver' => 'nette\database\drivers\mssqldriver',
  73. 'mysqldriver' => 'nette\database\drivers\mysqldriver',
  74. 'ocidriver' => 'nette\database\drivers\ocidriver',
  75. 'odbcdriver' => 'nette\database\drivers\odbcdriver',
  76. 'pgsqldriver' => 'nette\database\drivers\pgsqldriver',
  77. 'sqlite2driver' => 'nette\database\drivers\sqlite2driver',
  78. 'sqlitedriver' => 'nette\database\drivers\sqlitedriver',
  79. 'isupplementaldriver' => 'nette\database\isupplementaldriver',
  80. 'databasereflection' => 'nette\database\reflection\databasereflection',
  81. 'row' => 'nette\database\row',
  82. 'sqlliteral' => 'nette\database\sqlliteral',
  83. 'sqlpreprocessor' => 'nette\database\sqlpreprocessor',
  84. 'statement' => 'nette\database\statement',
  85. 'tablerow' => 'nette\database\table\activerow',
  86. 'groupedtableselection' => 'nette\database\table\groupedselection',
  87. 'tableselection' => 'nette\database\table\selection',
  88. 'debugbar' => 'nette\diagnostics\bar',
  89. 'debugbluescreen' => 'nette\diagnostics\bluescreen',
  90. 'debugger' => 'nette\diagnostics\debugger',
  91. 'defaultbarpanel' => 'nette\diagnostics\defaultbarpanel',
  92. 'firelogger' => 'nette\diagnostics\firelogger',
  93. 'debughelpers' => 'nette\diagnostics\helpers',
  94. 'ibarpanel' => 'nette\diagnostics\ibarpanel',
  95. 'logger' => 'nette\diagnostics\logger',
  96. 'formcontainer' => 'nette\forms\container',
  97. 'formgroup' => 'nette\forms\controlgroup',
  98. 'formcontrol' => 'nette\forms\controls\basecontrol',
  99. 'button' => 'nette\forms\controls\button',
  100. 'checkbox' => 'nette\forms\controls\checkbox',
  101. 'hiddenfield' => 'nette\forms\controls\hiddenfield',
  102. 'imagebutton' => 'nette\forms\controls\imagebutton',
  103. 'multiselectbox' => 'nette\forms\controls\multiselectbox',
  104. 'radiolist' => 'nette\forms\controls\radiolist',
  105. 'selectbox' => 'nette\forms\controls\selectbox',
  106. 'submitbutton' => 'nette\forms\controls\submitbutton',
  107. 'textarea' => 'nette\forms\controls\textarea',
  108. 'textbase' => 'nette\forms\controls\textbase',
  109. 'textinput' => 'nette\forms\controls\textinput',
  110. 'uploadcontrol' => 'nette\forms\controls\uploadcontrol',
  111. 'form' => 'nette\forms\form',
  112. 'iformcontrol' => 'nette\forms\icontrol',
  113. 'iformrenderer' => 'nette\forms\iformrenderer',
  114. 'isubmittercontrol' => 'nette\forms\isubmittercontrol',
  115. 'defaultformrenderer' => 'nette\forms\rendering\defaultformrenderer',
  116. 'rule' => 'nette\forms\rule',
  117. 'rules' => 'nette\forms\rules',
  118. 'httpcontext' => 'nette\http\context',
  119. 'httpuploadedfile' => 'nette\http\fileupload',
  120. 'ihttprequest' => 'nette\http\irequest',
  121. 'ihttpresponse' => 'nette\http\iresponse',
  122. 'isessionstorage' => 'nette\http\isessionstorage',
  123. 'iuser' => 'nette\http\iuser',
  124. 'httprequest' => 'nette\http\request',
  125. 'httprequestfactory' => 'nette\http\requestfactory',
  126. 'httpresponse' => 'nette\http\response',
  127. 'session' => 'nette\http\session',
  128. 'sessionsection' => 'nette\http\sessionsection',
  129. 'url' => 'nette\http\url',
  130. 'urlscript' => 'nette\http\urlscript',
  131. 'user' => 'nette\http\user',
  132. 'smartcachingiterator' => 'nette\iterators\cachingiterator',
  133. 'callbackfilteriterator' => 'nette\iterators\filter',
  134. 'instancefilteriterator' => 'nette\iterators\instancefilter',
  135. 'mapiterator' => 'nette\iterators\mapper',
  136. 'recursivecallbackfilteriterator' => 'nette\iterators\recursivefilter',
  137. 'genericrecursiveiterator' => 'nette\iterators\recursor',
  138. 'lattefilter' => 'nette\latte\engine',
  139. 'htmlnode' => 'nette\latte\htmlnode',
  140. 'imacro' => 'nette\latte\imacro',
  141. 'macronode' => 'nette\latte\macronode',
  142. 'macrotokenizer' => 'nette\latte\macrotokenizer',
  143. 'cachemacro' => 'nette\latte\macros\cachemacro',
  144. 'coremacros' => 'nette\latte\macros\coremacros',
  145. 'formmacros' => 'nette\latte\macros\formmacros',
  146. 'macroset' => 'nette\latte\macros\macroset',
  147. 'uimacros' => 'nette\latte\macros\uimacros',
  148. 'latteexception' => 'nette\latte\parseexception',
  149. 'parser' => 'nette\latte\parser',
  150. 'phpwriter' => 'nette\latte\phpwriter',
  151. 'autoloader' => 'nette\loaders\autoloader',
  152. 'netteloader' => 'nette\loaders\netteloader',
  153. 'robotloader' => 'nette\loaders\robotloader',
  154. 'itranslator' => 'nette\localization\itranslator',
  155. 'imailer' => 'nette\mail\imailer',
  156. 'mail' => 'nette\mail\message',
  157. 'mailmimepart' => 'nette\mail\mimepart',
  158. 'sendmailmailer' => 'nette\mail\sendmailmailer',
  159. 'smtpexception' => 'nette\mail\smtpexception',
  160. 'smtpmailer' => 'nette\mail\smtpmailer',
  161. 'annotation' => 'nette\reflection\annotation',
  162. 'annotationsparser' => 'nette\reflection\annotationsparser',
  163. 'classreflection' => 'nette\reflection\classtype',
  164. 'extensionreflection' => 'nette\reflection\extension',
  165. 'functionreflection' => 'nette\reflection\globalfunction',
  166. 'iannotation' => 'nette\reflection\iannotation',
  167. 'methodreflection' => 'nette\reflection\method',
  168. 'parameterreflection' => 'nette\reflection\parameter',
  169. 'propertyreflection' => 'nette\reflection\property',
  170. 'authenticationexception' => 'nette\security\authenticationexception',
  171. 'iauthenticator' => 'nette\security\iauthenticator',
  172. 'iauthorizator' => 'nette\security\iauthorizator',
  173. 'iidentity' => 'nette\security\iidentity',
  174. 'iresource' => 'nette\security\iresource',
  175. 'irole' => 'nette\security\irole',
  176. 'identity' => 'nette\security\identity',
  177. 'permission' => 'nette\security\permission',
  178. 'simpleauthenticator' => 'nette\security\simpleauthenticator',
  179. 'templatehelpers' => 'nette\templating\defaulthelpers',
  180. 'filetemplate' => 'nette\templating\filetemplate',
  181. 'templateexception' => 'nette\templating\filterexception',
  182. 'ifiletemplate' => 'nette\templating\ifiletemplate',
  183. 'itemplate' => 'nette\templating\itemplate',
  184. 'template' => 'nette\templating\template',
  185. 'arrays' => 'nette\utils\arrays',
  186. 'criticalsection' => 'nette\utils\criticalsection',
  187. 'finder' => 'nette\utils\finder',
  188. 'html' => 'nette\utils\html',
  189. 'jsonexception' => 'nette\utils\json',
  190. 'json' => 'nette\utils\jsonexception',
  191. 'limitedscope' => 'nette\utils\limitedscope',
  192. 'mimetypedetector' => 'nette\utils\mimetypedetector',
  193. 'neon' => 'nette\utils\neonexception',
  194. 'neonexception' => 'nette\utils\neon',
  195. 'paginator' => 'nette\utils\paginator',
  196. 'safestream' => 'nette\utils\safestream',
  197. 'regexpexception' => 'nette\utils\regexpexception',
  198. 'strings' => 'nette\utils\strings',
  199. 'tokenizer' => 'nette\utils\tokenizer',
  200. 'tokenizerexception' => 'nette\utils\tokenizerexception',
  201. 'arrayhash' => 'nette\arrayhash',
  202. 'arraylist' => 'nette\arraylist',
  203. 'callback' => 'nette\callback',
  204. 'configurator' => 'nette\configurator',
  205. 'datetime53' => 'nette\datetime',
  206. 'environment' => 'nette\environment',
  207. 'framework' => 'nette\framework',
  208. 'freezableobject' => 'nette\freezableobject',
  209. 'ifreezable' => 'nette\ifreezable',
  210. 'unknownimagefileexception' => 'nette\image',
  211. 'image' => 'nette\unknownimagefileexception',
  212. 'object' => 'nette\object',
  213. 'objectmixin' => 'nette\objectmixin',
  214. 'notimplementedexception' => 'nette\notimplementedexception',
  215. 'deprecatedexception' => 'nette\deprecatedexception',
  216. 'notsupportedexception' => 'nette\notsupportedexception',
  217. 'directorynotfoundexception' => 'nette\directorynotfoundexception',
  218. 'memberaccessexception' => 'nette\memberaccessexception',
  219. 'filenotfoundexception' => 'nette\filenotfoundexception',
  220. 'argumentoutofrangeexception' => 'nette\argumentoutofrangeexception',
  221. 'fatalerrorexception' => 'nette\fatalerrorexception',
  222. 'invalidstateexception' => 'nette\invalidstateexception',
  223. 'ioexception' => 'nette\ioexception',
  224. 'staticclassexception' => 'nette\staticclassexception',
  225. );
  226.  
  227. foreach ($aliases as $old => $new) {
  228. class_alias($new, $old);
  229. //class_alias($new, 'n' . $old);
  230. }
  231.  
  232. unset($aliases);
Add Comment
Please, Sign In to add comment