File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 12
12
namespace Translation \SymfonyStorage ;
13
13
14
14
use Symfony \Component \Translation \MessageCatalogue ;
15
- use Symfony \Bundle \FrameworkBundle \Translation \TranslationLoader ;
15
+ use Symfony \Bundle \FrameworkBundle \Translation \TranslationLoader as SymfonyTranslationLoader ;
16
16
17
17
/**
18
18
* This loader is just a wrapper for Symfony TranslationLoader
@@ -29,7 +29,7 @@ final class LegacyTranslationReader // implements Symfony\Component\Translation\
29
29
30
30
public function __construct ($ loader )
31
31
{
32
- if (!$ loader instanceof TranslationLoader) {
32
+ if (!( $ loader instanceof TranslationLoader) && !( $ loader instanceof SymfonyTranslationLoader) ) {
33
33
throw new \LogicException (sprintf ('PHP-Translation/SymfonyStorage does not support a TranslationReader of type "%s". ' , get_class ($ loader )));
34
34
}
35
35
$ this ->loader = $ loader ;
You can’t perform that action at this time.
0 commit comments