public function __construct($app = null) { $this->set_table_names(); if (is_object($app)) { $this->app = $app; } else { $this->app = mw(); } $this->socialite = new SocialiteManager($this->app); }