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

Hotfix - deprecated messages - link to migration guide #86

Merged
merged 1 commit into from
Jan 23, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/Http/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ public function getCurrentRequest()
trigger_error(sprintf(
'%s is now deprecated. The request passed to your method is the current '
. 'request now. %s will no longer be available starting in Stratigility 2.0.0. '
. 'Please see https://docs.zendframework.com/migration/to-v2/#original-request-response-and-uri '
. 'Please see '
. 'https://docs.zendframework.com/zend-stratigility/migration/to-v2/#original-request-response-and-uri '
. 'for full details.',
__CLASS__,
\Zend\Stratigility\Middleware\OriginalMessages::class,
Expand All @@ -90,7 +91,8 @@ public function getOriginalRequest()
'%s is now deprecated. Please register %s as your outermost middleware, '
. 'and pull the original request via the request "originalRequest" '
. 'attribute. %s will no longer be available starting in Stratigility 2.0.0. '
. 'Please see https://docs.zendframework.com/migration/to-v2/#original-request-response-and-uri '
. 'Please see '
. 'https://docs.zendframework.com/zend-stratigility/migration/to-v2/#original-request-response-and-uri '
. 'for full details.',
__CLASS__,
\Zend\Stratigility\Middleware\OriginalMessages::class,
Expand Down
12 changes: 8 additions & 4 deletions src/Http/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ public function getOriginalResponse()
'%s is now deprecated. Please register %s as your outermost middleware, '
. 'and pull the original response via the request "originalResponse" '
. 'attribute. %s will no longer be available starting in Stratigility 2.0.0. '
. 'Please see https://docs.zendframework.com/migration/to-v2/#original-request-response-and-uri '
. 'Please see '
. 'https://docs.zendframework.com/zend-stratigility/migration/to-v2/#original-request-response-and-uri '
. 'for full details.',
__CLASS__,
\Zend\Stratigility\Middleware\OriginalMessages::class,
Expand All @@ -80,7 +81,8 @@ public function write($data)
trigger_error(sprintf(
'%s is now deprecated; use $response->getBody()->write(). '
. '%s will no longer be available starting in Stratigility 2.0.0. '
. 'Please see https://docs.zendframework.com/migration/to-v2/#deprecated-functionality '
. 'Please see '
. 'https://docs.zendframework.com/zend-stratigility/migration/to-v2/#deprecated-functionality '
. 'for full details.',
__CLASS__,
__METHOD__
Expand Down Expand Up @@ -111,7 +113,8 @@ public function end($data = null)
trigger_error(sprintf(
'%s is now deprecated; use $response->getBody()->write(). '
. '%s will no longer be available starting in Stratigility 2.0.0. '
. 'Please see https://docs.zendframework.com/migration/to-v2/#deprecated-functionality '
. 'Please see '
. 'https://docs.zendframework.com/zend-stratigility/migration/to-v2/#deprecated-functionality '
. 'for full details.',
__CLASS__,
__METHOD__
Expand Down Expand Up @@ -142,7 +145,8 @@ public function isComplete()
trigger_error(sprintf(
'%s is now deprecated; use $response->getBody()->write(). '
. '%s will no longer be available starting in Stratigility 2.0.0. '
. 'Please see https://docs.zendframework.com/migration/to-v2/#deprecated-functionality '
. 'Please see '
. 'https://docs.zendframework.com/zend-stratigility/migration/to-v2/#deprecated-functionality '
. 'for full details.',
__CLASS__,
__METHOD__
Expand Down