1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-06 14:16:39 +02:00

loader: old class names triggers E_USER_DEPRECATED, removed preloading (BC break)

This commit is contained in:
David Grudl
2015-11-07 23:31:36 +01:00
parent 85787cf9cd
commit acc2d000c4

View File

@@ -62,26 +62,7 @@ spl_autoload_register(function ($class) {
'Dibi\Drivers\MsSql2005Reflector' => 'Dibi\Drivers\SqlsrvReflector',
];
if (isset($old2new[$class])) {
trigger_error("Class $class has been renamed to {$old2new[$class]}.", E_USER_DEPRECATED);
class_alias($old2new[$class], $class);
}
});
// preload for compatiblity
array_map('class_exists', [
'DibiConnection',
'DibiDateTime',
'DibiDriverException',
'DibiEvent',
'DibiException',
'DibiFluent',
'DibiLiteral',
'DibiNotImplementedException',
'DibiNotSupportedException',
'DibiPcreException',
'DibiProcedureException',
'DibiResult',
'DibiRow',
'IDataSource',
'IDibiDriver',
]);