From 46cd585ddd95ea9d97adb9240c534ab7f524451d Mon Sep 17 00:00:00 2001 From: oscarotero Date: Thu, 25 Jan 2018 20:43:09 +0100 Subject: [PATCH] changed NegotiationTrait namespace. v1.0 --- CHANGELOG.md | 5 +++-- src/ContentEncoding.php | 2 +- src/ContentLanguage.php | 2 +- src/ContentType.php | 2 +- src/{Utils => }/NegotiationTrait.php | 2 +- 5 files changed, 7 insertions(+), 6 deletions(-) rename src/{Utils => }/NegotiationTrait.php (95%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8788ffa..09063cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). -## [UNRELEASED] +## [1.0.0] - 2018-01-25 ### Added @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Changed - Upgraded to the final version of PSR-15 `psr/http-server-middleware` +- Changed namespace of `Middlewares\NegotiationTrait` (from `Middlewares\Utils\NegotiationTrait`) ### Fixed @@ -87,7 +88,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). First version -[UNRELEASED]: https://github.com/middlewares/negotiation/compare/v0.5.0...HEAD +[1.0.0]: https://github.com/middlewares/negotiation/compare/v0.5.0...v1.0.0 [0.5.0]: https://github.com/middlewares/negotiation/compare/v0.4.0...v0.5.0 [0.4.0]: https://github.com/middlewares/negotiation/compare/v0.3.1...v0.4.0 [0.3.1]: https://github.com/middlewares/negotiation/compare/v0.3.0...v0.3.1 diff --git a/src/ContentEncoding.php b/src/ContentEncoding.php index 39c2f74..af3153c 100644 --- a/src/ContentEncoding.php +++ b/src/ContentEncoding.php @@ -11,7 +11,7 @@ class ContentEncoding implements MiddlewareInterface { - use Utils\NegotiationTrait; + use NegotiationTrait; /** * @var array Available encodings diff --git a/src/ContentLanguage.php b/src/ContentLanguage.php index 97dc1a7..cce6c52 100644 --- a/src/ContentLanguage.php +++ b/src/ContentLanguage.php @@ -11,7 +11,7 @@ class ContentLanguage implements MiddlewareInterface { - use Utils\NegotiationTrait; + use NegotiationTrait; /** * @var array Allowed languages diff --git a/src/ContentType.php b/src/ContentType.php index d523bfc..d1928a5 100644 --- a/src/ContentType.php +++ b/src/ContentType.php @@ -13,7 +13,7 @@ class ContentType implements MiddlewareInterface { - use Utils\NegotiationTrait; + use NegotiationTrait; /** * @var bool Whether use the first format as default diff --git a/src/Utils/NegotiationTrait.php b/src/NegotiationTrait.php similarity index 95% rename from src/Utils/NegotiationTrait.php rename to src/NegotiationTrait.php index 1dabbf7..ce756d6 100644 --- a/src/Utils/NegotiationTrait.php +++ b/src/NegotiationTrait.php @@ -1,7 +1,7 @@