src/WorkerF/App.php
public static function init()
    {
        try {
            // register class
            self::register();
            // init database
            DB::init(Config::get('database.db_con'));
            // init redis
            Redis::init(Config::get('database.redis'));

        } catch (\Exception $e) {
            Error::printError($e->getMessage());
        }
    }
public static function init()
    {
        try {
            // register class
            self::register();
            // init database
            DB::init(Config::get('database.db_con'));
            // init redis
            Redis::init(Config::get('database.redis'));

        } catch (\Exception $e) {
            Error::printError($e->getMessage());
        }
    }
Initialize some devices like redis \ database ...

@return void
@throws WorkerF\DB\ConnectException