protected function loadCustomTables()
    {
        if ($config = $this->loadConfigFile('tables.php')) {
            $app = $this->app;

            foreach ($config as $installerClass) {
                if (is_string($installerClass) && is_subclass_of($installerClass, 'Tev\Database\CustomTables\AbstractInstaller')) {
                    register_activation_hook($this->getPluginFile(), function () use ($installerClass, $app) {
                        global $wpdb;
                        $installer = new $installerClass($wpdb, $app);
                        $installer->install();
                    });

                    add_action('plugins_loaded', function () use ($installerClass, $app) {
                        global $wpdb;
                        $installer = new $installerClass($wpdb, $app);
                        $installer->update();
                    });
                }
            }
        }

        return $this;
    }