public static function run(App $app, ?Config $config = null): void
    {
        \ini_set('display_errors', '0');
        \ini_set('html_errors', '0');
        
        $k1 = new static($config);
        $k1->runApp($app);
    }
public static function run(App $app, ?Config $config = null): void
    {
        \ini_set('display_errors', '0');
        \ini_set('html_errors', '0');
        
        $k1 = new static($config);
        $k1->runApp($app);
    }
public static function run ( App $ app , ? Config $ config = null ) : void { \ ini_set ( 'display_errors' , '0' ) ; \ ini_set ( 'html_errors' , '0' ) ; $ k1 = new static ( $ config ) ; $ k1 -> runApp ( $ app ) ; }
Run K1 eighter serving the given resource or in console mode if launched from command line.

@param App $app An object implementing Resource or the fully-qualified name of a routed class.
@param Config $config K1 system configuration object.
Run K1 eighter serving the given resource or in console mode if launched from command line .