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

Commit

Permalink
Fixed links to migration guide in deprecated messages
Browse files Browse the repository at this point in the history
  • Loading branch information
michalbundyra committed Nov 11, 2016
1 parent fadeafe commit 49f4344
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
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

0 comments on commit 49f4344

Please sign in to comment.