Skip to content

Commit

Permalink
Update src/DI/TranslationExtension.php
Browse files Browse the repository at this point in the history
Co-authored-by: Jáchym Toušek <enumag@gmail.com>
  • Loading branch information
vrestihnat and enumag committed Feb 10, 2021
1 parent bcdbd6c commit 273a44f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DI/TranslationExtension.php
Expand Up @@ -298,7 +298,7 @@ public function beforeCompile()
->addSetup('addFilter', ['translate', [$this->prefix('@helpers'), 'translateFilterAware']]);
};

$latteFactoryService = $builder->getByType(LatteFactory::class)?: $builder->getByType(ILatteFactory::class);
$latteFactoryService = $builder->getByType(LatteFactory::class) ?: $builder->getByType(ILatteFactory::class);
if (!$latteFactoryService || !self::isOfType($builder->getDefinition($latteFactoryService)->getClass(), LatteEngine::class)) {
$latteFactoryService = 'nette.latteFactory';
}
Expand Down

0 comments on commit 273a44f

Please sign in to comment.