Skip to content

Commit

Permalink
remove KdybyTranslationBackCompatibilityTrait trait
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleš committed Sep 4, 2019
1 parent 2d5f39e commit c8d648d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 25 deletions.
23 changes: 0 additions & 23 deletions src/KdybyTranslationBackCompatibilityTrait.php

This file was deleted.

1 change: 0 additions & 1 deletion src/Translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ class Translator extends Symfony\Component\Translation\Translator implements Net
{

use Nette\SmartObject;
use KdybyTranslationBackCompatibilityTrait;

/** @var Contributte\Translation\LocaleResolver */
private $localeResolver;
Expand Down
2 changes: 1 addition & 1 deletion tests/Tests/Translator.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class Translator extends Tests\TestAbstract

$translator->removePrefix();

$prefixedTranslator = $translator->domain('messages');
$prefixedTranslator = $translator->createPrefixedTranslator('messages');
Tester\Assert::same('Hello', $prefixedTranslator->translate('hello'));
}

Expand Down

0 comments on commit c8d648d

Please sign in to comment.