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;
    }
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;
    }
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 ; }
Load custom database table installers from configuration files.

@return \Tev\Plugin\Loader This, for chaining
Load custom database table installers from configuration files .