Skip to content
This repository was archived by the owner on Nov 19, 2023. It is now read-only.

Releases: mcaskill/Slim-Polyglot

v0.5.0

18 Oct 13:52
ec972b1
Compare
Choose a tag to compare
  • Add exception interface to support scoping exceptions to this package.
    use McAskill\Slim\Polyglot\Exception\ExceptionInterface;
    use McAskill\Slim\Polyglot\Exception\InvalidArgumentException;
    use McAskill\Slim\Polyglot\Exception\RuntimeException;
  • Cleaned-up coding syntax across package.

v0.4.1

18 Oct 13:49
71b9931
Compare
Choose a tag to compare

v0.4.0

30 Aug 20:17
Compare
Choose a tag to compare
  • Improved RegEx patterns in getFromPath() and getFromQuery() to better suit their contexts.
  • Added new option to regexPattern: Passing Polyglot::EXACT will instruct the middleware to only match the supported languages instead of any potential ISO-639 language code.
    new Polyglot([
      'languages'    => [ 'en', 'fr', 'jp' ],
      'regexPattern' => Polyglot::EXACT, // (?<language>en|fr|jp)(?![-_])
    ])

v0.3.3

30 Aug 20:09
Compare
Choose a tag to compare
  • #10: Fix handling of Slim's URI base path (@pmous)

v0.3.2

07 Feb 01:24
4c2355f
Compare
Choose a tag to compare
  • #9: Detect slash at start of URI path (@guym4c)

v0.3.1

30 Jan 20:51
d30d5d6
Compare
Choose a tag to compare

Support for PHP 7.2 countable

  • #7: Initialize callbacks as array - PHP 7.2 countable issue (@ceckobecko)

v0.3.0 (2018-12-10)

30 Jan 20:49
455cdea
Compare
Choose a tag to compare

Support base path and forced redirects.

  • #5: Fix support subdirectory (basePath) and redirect in your routes on same host (@auban)

v0.2.0 (2017-11-07)

30 Jan 20:48
6001459
Compare
Choose a tag to compare

Control session storage of resolved language.

  • #2: Created an option to control whether $_SESSION would be used or not (@ironsmile)
  • #1: Fixed setup in README (@Tarpsvo)

v0.1.0 (2017-03-09)

30 Jan 20:48
Compare
Choose a tag to compare

Initial release