mirror of
https://github.com/silverstripe/silverstripe-fulltextsearch
synced 2024-10-22 14:05:29 +02:00
Merge pull request #301 from creative-commoners/pulls/3.9/symfony4
DEP Allow symfony 4
This commit is contained in:
commit
5611e24e10
@ -25,7 +25,7 @@
|
||||
"silverstripe/framework": "^4.10",
|
||||
"monolog/monolog": "~1.15",
|
||||
"ptcinc/solr-php-client": "^1.0",
|
||||
"symfony/process": "^3.2",
|
||||
"symfony/process": "^3.2 || ^4",
|
||||
"tractorcow/silverstripe-proxy-db": "~0.1"
|
||||
},
|
||||
"require-dev": {
|
||||
|
@ -95,9 +95,16 @@ class SolrReindexImmediateHandler extends SolrReindexBase
|
||||
$scriptPath = sprintf("%s%scli-script.php", $frameworkPath, DIRECTORY_SEPARATOR);
|
||||
$scriptTask = "{$php} {$scriptPath} dev/tasks/{$taskName}";
|
||||
|
||||
$cmd = "{$scriptTask} index={$indexClassEscaped} class={$class} group={$group} groups={$groups} variantstate={$statevar}";
|
||||
$cmd .= " verbose=1";
|
||||
$logger->info("Running '$cmd'");
|
||||
$cmd = [
|
||||
$scriptTask,
|
||||
"index={$indexClassEscaped}",
|
||||
"class={$class}",
|
||||
"group={$group}",
|
||||
"groups={$groups}",
|
||||
"variantstate={$statevar}",
|
||||
"verbose=1"
|
||||
];
|
||||
$logger->info('Running ' . implode(' ', $cmd));
|
||||
|
||||
// Execute script via shell
|
||||
$process = new Process($cmd);
|
||||
|
Loading…
Reference in New Issue
Block a user