File tree Expand file tree Collapse file tree
src/org/netbeans/modules/php/wordpress/commands Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -116,12 +116,16 @@ private WordPressCli(String wpCliPath) {
116116 this .wpCliPath = wpCliPath ;
117117 }
118118
119+ public static WordPressCli getDefault (boolean warn ) throws InvalidPhpExecutableException {
120+ String wpCliPath = WordPressOptions .getInstance ().getWpCliPath ();
121+ return newInstance (wpCliPath , warn );
122+ }
123+
119124 @ NbBundle .Messages ({
120125 "# {0} - error message" ,
121126 "WordPressCli.invalid.wpcli.script=<html>wp-cli is not valid.<br>({0})"
122127 })
123- public static WordPressCli getDefault (boolean warn ) throws InvalidPhpExecutableException {
124- String wpCliPath = WordPressOptions .getInstance ().getWpCliPath ();
128+ public static WordPressCli newInstance (String wpCliPath , boolean warn ) throws InvalidPhpExecutableException {
125129 String error = validate (wpCliPath );
126130 if (error == null ) {
127131 return new WordPressCli (wpCliPath );
You can’t perform that action at this time.
0 commit comments