File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
src/Symfony/Component/Translation Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Translation ;
13
13
14
+ use Symfony \Component \HttpKernel \CacheWarmer \WarmableInterface ;
14
15
use Symfony \Component \Translation \Exception \InvalidArgumentException ;
15
16
16
17
/**
17
18
* @author Abdellatif Ait boudad <a.aitboudad@gmail.com>
18
19
*/
19
- class DataCollectorTranslator implements TranslatorInterface, TranslatorBagInterface
20
+ class DataCollectorTranslator implements TranslatorInterface, TranslatorBagInterface, WarmableInterface
20
21
{
21
22
const MESSAGE_DEFINED = 0 ;
22
23
const MESSAGE_MISSING = 1 ;
@@ -87,6 +88,14 @@ public function getCatalogue($locale = null)
87
88
return $ this ->translator ->getCatalogue ($ locale );
88
89
}
89
90
91
+ /**
92
+ * {@inheritdoc}
93
+ */
94
+ public function warmUp ($ cacheDir )
95
+ {
96
+ return $ this ->translator ->warmUp ($ cacheDir );
97
+ }
98
+
90
99
/**
91
100
* Gets the fallback locales.
92
101
*
You can’t perform that action at this time.
0 commit comments