AnsweredAssumed Answered

Overriding MysqliManager Not Working

Question asked by hats on Jul 26, 2017
Latest reply on Aug 9, 2017 by hats

Hello Folks,


I was working on database password encryption in config.php file and wanted to extend MysqliManager.php file under include/database to custom/include/database/CustomMysqliManager.php but whenever I am replacing 'MysqliManager' in 'db_manager' to 'CustomMysqliManager', it is giving error and application is not loading.

PHP Fatal error:  Call to a member function setOptions() on null in project\test\include\database\DBManagerFactory.php on line 133

I have done this before in 7.6 but currently I am working on and I am not sure if anything has changed in this version or if I need to define my custom class in any other location as well.

I even tried with following but no luck.



class CustomMysqliManager extends MysqliManager


   public function __construct()






Any help would be greatly appreciated.