*
* @param postExecution
* @return execution descriptor
*/
private ExecutionDescriptor getExecutionDescriptor(Runnable postExecution) {
ExecutionDescriptor executionDescriptor = PhpExecutable.DEFAULT_EXECUTION_DESCRIPTOR
.optionsPath(WordPressOptions.getOptionsPath());
if (postExecution != null) {
executionDescriptor = executionDescriptor.postExecution(postExecution);
}
return executionDescriptor;
}