sto cercando disattivare la cache traduttore in questo modo:Spegnere traduttore di cache
app/config/config.yml
services: translator.default: class: %translator.class% arguments: [ @service_container, @translator.selector, {}, { cache_dir: null, debug: %kernel.debug% }, @?session ]
Il codice memorizzato nella cache nella cache/dev/appDevDebugProjectContainer.php dovrebbe essere: codice
protected function getTranslator_DefaultService() { $this->services['translator.default'] = $instance = new \Symfony\Bundle\FrameworkBundle\Translation\Translator($this, new \Symfony\Component\Translation\MessageSelector(), array('translation.loader.php' => 'php', 'translation.loader.yml' => 'yml', 'translation.loader.xliff' => 'xliff'), array('cache_dir' => NULL, 'debug' => true), $this->get('session')); ... resources ... return $instance; }
ma ho seguito:
protected function getTranslator_DefaultService() { return $this->services['translator.default'] = new \Symfony\Bundle\FrameworkBundle\Translation\Translator($this, new \Symfony\Component\Translation\MessageSelector(), array('translation.loader.db' => 'db', 'translation.loader.php' => 'php', 'translation.loader.yml' => 'yml', 'translation.loader.xliff' => 'xliff'), array('cache_dir' => NULL, 'debug' => true), $this->get('session')); }
Quindi le risorse del traduttore sono vuote.
Avete risolto? Ho lo stesso problema .. –
No, abbiamo cambiato framework in Silex. – constXife