mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-11 03:53:13 +00:00
Cleanup namepaces, variables uses
This commit is contained in:
@@ -41,9 +41,6 @@ class module_console_sphinxGenerateSuggestion extends Command
|
||||
define('FREQ_THRESHOLD', 10);
|
||||
define('SUGGEST_DEBUG', 0);
|
||||
|
||||
$appbox = $this->getService('phraseanet.appbox');
|
||||
$registry = $this->container['phraseanet.registry'];
|
||||
|
||||
$params = phrasea::sbas_params($this->container);
|
||||
|
||||
foreach ($params as $sbas_id => $p) {
|
||||
@@ -55,9 +52,9 @@ class module_console_sphinxGenerateSuggestion extends Command
|
||||
)
|
||||
);
|
||||
|
||||
$tmp_file = $registry->get('GV_RootPath') . 'tmp/dict' . $index . '.txt';
|
||||
$tmp_file = $this->container['phraseanet.registry']->get('GV_RootPath') . 'tmp/dict' . $index . '.txt';
|
||||
|
||||
$databox = $appbox->get_databox($sbas_id);
|
||||
$databox = $this->getService('phraseanet.appbox')->get_databox($sbas_id);
|
||||
|
||||
$output->writeln("process Databox " . $databox->get_viewname() . " / $index\n");
|
||||
|
||||
|
Reference in New Issue
Block a user