check_minimum_php_requirements(); $this->register_providers(); // notify assistant was loaded do_action( 'fl_assistant_loaded' ); // compatibility with SG Optimizer plugin add_filter( 'sgo_js_minify_exclude', [ $this, 'js_minify_exclude' ] ); } /** * exclude js if minify javaScript files setting is enabled */ public function js_minify_exclude( $js_list ) { $js_list[] = 'fl-assistant'; $js_list[] = 'fl-assistant-apps'; return $js_list; } /** * */ public function check_minimum_php_requirements() { $php_version_check = new PhpVersionCheck(); $php_version_check->check(); } public function register_providers() { $this->container = new Container(); foreach ( $this->providers as $provider_class ) { $provider = $this->container->make( $provider_class, [ $this->container ] ); $this->container->execute( [ $provider, 'bootstrap' ] ); } } }