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

Commit dd718ca

Browse files
Dont mention the parsing of the Accept HTTP Header
1 parent d4b8bf0 commit dd718ca

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

doc/book/quick-start.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -583,16 +583,12 @@ within your application.
583583
- `Zend\View\Strategy\PhpRendererStrategy`. This strategy is a "catch-all" in
584584
that it will always return the `Zend\View\Renderer\PhpRenderer` and populate
585585
the Response body with the results of rendering.
586-
- `Zend\View\Strategy\JsonStrategy`. This strategy inspects the `Accept` HTTP
587-
request header, if present, and determines if the client has indicated it
588-
accepts an `application/json` response. If so, it will return the
586+
- `Zend\View\Strategy\JsonStrategy`. This strategy will return the
589587
`Zend\View\Renderer\JsonRenderer`, and populate the Response body with the
590588
JSON value returned, as well as set a `Content-Type` header with a value of
591589
`application/json`.
592-
- `Zend\View\Strategy\FeedStrategy`. This strategy inspects the `Accept` HTTP
593-
header, if present, and determines if the client has indicated it accepts
594-
either an `application/rss+xml` or `application/atom+xml` response. If so, it
595-
will return the `Zend\View\Renderer\FeedRenderer`, setting the feed type to
590+
- `Zend\View\Strategy\FeedStrategy`. This strategy will return the
591+
`Zend\View\Renderer\FeedRenderer`, setting the feed type to
596592
either "rss" or "atom", based on what was matched. Its Response strategy will
597593
populate the Response body with the generated feed, as well as set a
598594
`Content-Type` header with the appropriate value based on feed type.

src/Strategy/FeedStrategy.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ public function attach(EventManagerInterface $events, $priority = 1)
4343
}
4444

4545
/**
46-
* Detect if we should use the FeedRenderer based on model type and/or
47-
* Accept header
46+
* Detect if we should use the FeedRenderer based on model type
4847
*
4948
* @param ViewEvent $e
5049
* @return null|FeedRenderer

src/Strategy/JsonStrategy.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ public function getCharset()
8181
}
8282

8383
/**
84-
* Detect if we should use the JsonRenderer based on model type and/or
85-
* Accept header
84+
* Detect if we should use the JsonRenderer based on model type
8685
*
8786
* @param ViewEvent $e
8887
* @return null|JsonRenderer

0 commit comments

Comments
 (0)