public function regenerate($_, $assoc_args)
    {
        $this->init_args(func_get_args());

        $this->update_salts(true);

        if (! $this->env->save()) {
            WP_CLI::error('Failed to update salts.');
        }

        WP_CLI::success('Salts regenerated.');
    }
public function regenerate($_, $assoc_args)
    {
        $this->init_args(func_get_args());

        $this->update_salts(true);

        if (! $this->env->save()) {
            WP_CLI::error('Failed to update salts.');
        }

        WP_CLI::success('Salts regenerated.');
    }
public function regenerate ( $ _ , $ assoc_args ) { $ this -> init_args ( func_get_args ( ) ) ; $ this -> update_salts ( true ) ; if ( ! $ this -> env -> save ( ) ) { WP_CLI :: error ( 'Failed to update salts.' ) ; } WP_CLI :: success ( 'Salts regenerated.' ) ; }
Regenerate salts for the environment file.

[--file=<path-to-dotenv>]
: Path to the environment file.  Default: '.env'

@when before_wp_load

@param $_
@param $assoc_args
Regenerate salts for the environment file .