Skip to content
This repository has been archived by the owner on Jun 2, 2020. It is now read-only.

v1.2.0-beta

Pre-release
Pre-release
Compare
Choose a tag to compare
@Pierstoval Pierstoval released this 18 Feb 16:31
· 17 commits to master since this release

Major changes:

  • Added PHPUnit tests
  • Optimized the Extractor: Moved the extraction logic in a do* method. The first called method only handles the extraction process' potential exceptions depending on its usage in CLI or request.
  • New features in the Translator:
    • A flushing strategy has been implemented in order to allow the user to manipulate the $translationsToPersist collection by himself.
    • The setLocale() function now works properly, the same way the native Symfony translator does.
    • Made the getTranslation() and findToken() methods public, to allow creating custom back-ends or for some other purposes.

BC Breaks:

  • The translate() method has been deleted, to avoid relying on this old fashioned method. The trans() method should be used, as it is the native translator's behavior, and I don't want to supplant the translator. I only want to add a new database logic layer to the translator.

Minor changes:

  • Removed some never-used code in the TranslationLikeHydrator
  • Added a lot of PHPDoc for many classes/methods
  • Linked to Coveralls and Travis-CI for quality informations