Skip to content

Commit

Permalink
Use getRequest() instead of request
Browse files Browse the repository at this point in the history
  • Loading branch information
garas committed Sep 16, 2018
1 parent 8d44d24 commit 698ad5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/Component/CsrfComponent.php
Expand Up @@ -69,7 +69,7 @@ class CsrfComponent extends Component
*/
public function initialize(array $config)
{
if ($this->getController()->request->getParam('_csrfToken') !== false) {
if ($this->getController()->getRequest()->getParam('_csrfToken') !== false) {
triggerWarning('CSRF token already defined. Disable CsrfComponent if you use CsrfProtectionMiddleware.');
}
}
Expand Down

0 comments on commit 698ad5d

Please sign in to comment.