Skip to content

Commit

Permalink
Merge pull request #3794 from rchavik/3.0-misc
Browse files Browse the repository at this point in the history
3.0 misc
  • Loading branch information
markstory committed Jun 25, 2014
2 parents ea3e843 + 7dd997d commit a4e6385
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/Controller/Component.php
Expand Up @@ -16,6 +16,7 @@

use Cake\Core\InstanceConfigTrait;
use Cake\Event\EventListener;
use Cake\Log\LogTrait;

/**
* Base class for an individual Component. Components provide reusable bits of
Expand Down Expand Up @@ -63,6 +64,7 @@
class Component implements EventListener {

use InstanceConfigTrait;
use LogTrait;

/**
* Component registry class used to lazy load components.
Expand Down
4 changes: 0 additions & 4 deletions src/Controller/Component/RequestHandlerComponent.php
Expand Up @@ -387,7 +387,6 @@ public function getAjaxVersion() {
* types the client accepts. If a string is passed, returns true
* if the client accepts it. If an array is passed, returns true
* if the client accepts one or more elements in the array.
* @see RequestHandlerComponent::setContent()
*/
public function accepts($type = null) {
$accepted = $this->request->accepts();
Expand Down Expand Up @@ -458,7 +457,6 @@ public function requestedWith($type = null) {
* a boolean will be returned if that type is preferred.
* If an array of types are provided then the first preferred type is returned.
* If no type is provided the first preferred type is returned.
* @see RequestHandlerComponent::setContent()
*/
public function prefers($type = null) {
$acceptRaw = $this->request->parseAccept();
Expand Down Expand Up @@ -509,7 +507,6 @@ public function prefers($type = null) {
* @param string $type Type of response to send (e.g: 'ajax')
* @param array $options Array of options to use
* @return void
* @see RequestHandlerComponent::setContent()
* @see RequestHandlerComponent::respondAs()
*/
public function renderAs(Controller $controller, $type, array $options = array()) {
Expand Down Expand Up @@ -571,7 +568,6 @@ public function renderAs(Controller $controller, $type, array $options = array()
* @return bool Returns false if the friendly type name given in $type does
* not exist in the type map, or if the Content-type header has
* already been set by this method.
* @see RequestHandlerComponent::setContent()
*/
public function respondAs($type, array $options = array()) {
$defaults = array('index' => null, 'charset' => null, 'attachment' => false);
Expand Down

0 comments on commit a4e6385

Please sign in to comment.