Skip to content

Commit

Permalink
Make validation and sending methods in contacts form controller prote…
Browse files Browse the repository at this point in the history
…cted

I intended to move it out of the controller altogether but it seems to be against what the team had in mind with the abstract controller
  • Loading branch information
schmengler committed Feb 4, 2017
1 parent 352dcef commit c8fbb70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/code/Magento/Contact/Controller/Index/Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ private function getDataPersistor()
/**
* @param array $post Post data from contact form
*/
private function sendEmail($post)
protected function sendEmail($post)
{
$storeScope = \Magento\Store\Model\ScopeInterface::SCOPE_STORE;
$transport = $this->_transportBuilder
Expand Down Expand Up @@ -98,7 +98,7 @@ private function isPostRequest()
* @return array
* @throws \Exception
*/
private function validatedParams()
protected function validatedParams()
{
$request = $this->getRequest();
if (trim($request->getParam('name')) === '') {
Expand Down

0 comments on commit c8fbb70

Please sign in to comment.