]> git.ipfire.org Git - thirdparty/bugzilla.git/commit
[Bug 1592129] remove subclass loading and driver delegation from Schema->new.
authorDylan William Hardison <dylan@hardison.net>
Sat, 1 Feb 2020 15:11:19 +0000 (16:11 +0100)
committerGitHub <noreply@github.com>
Sat, 1 Feb 2020 15:11:19 +0000 (16:11 +0100)
commit4d4a65b3bf867b768bd1e22cbd12476a6cbd1f7a
treec241f7dc71ea1b75be2e501c3474dbd02c122535
parent75cfe2ae0359320ea16809eb547db43bcef2d16b
[Bug 1592129] remove subclass loading and driver delegation from Schema->new.

Bugzilla::DB::Schema->new() was both a normal constructor and also a
class-loading factory method. It is simpler to just do the class loading at the
call-site (in Bugzilla::DB::_bz_schema).

It's not very likely extensions relied on this behavior so this should be a good
change.
Bugzilla/DB.pm
Bugzilla/DB/Schema.pm
t/013dbschema.t