Skip to content

Commit cb09c8e

Browse files
committed
controllers names
1 parent caaebf4 commit cb09c8e

File tree

5 files changed

+41
-1
lines changed

5 files changed

+41
-1
lines changed

app/site/controllers/Frontend/Search.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515

1616
use App\Base\Abstracts\Controllers\FrontendPage;
17+
use Degami\Basics\Exceptions\BasicException;
1718

1819
/**
1920
* Search page
@@ -134,6 +135,12 @@ protected function getSearchResult($search_query = null, $page = 0)
134135
return $result;
135136
}
136137

138+
/**
139+
* {@inheritdoc}
140+
*
141+
* @return string
142+
* @throws BasicException
143+
*/
137144
public function getRouteName()
138145
{
139146
return $this->getUtils()->translate('Search');

app/site/controllers/Frontend/Users/Login.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,4 +216,15 @@ public function formSubmitted(FAPI\Form $form, &$form_state)
216216
$logged_user = $form_state['logged_user'];
217217
return "" . $logged_user->getJWT();
218218
}
219+
220+
/**
221+
* {@inheritdoc}
222+
*
223+
* @return string
224+
* @throws BasicException
225+
*/
226+
public function getRouteName()
227+
{
228+
return $this->getUtils()->translate('Login');
229+
}
219230
}

app/site/controllers/Frontend/Users/PasswordForgot.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,4 +260,15 @@ public function formSubmitted(FAPI\Form $form, &$form_state)
260260

261261
return $user_model;
262262
}
263+
264+
/**
265+
* {@inheritdoc}
266+
*
267+
* @return string
268+
* @throws BasicException
269+
*/
270+
public function getRouteName()
271+
{
272+
return $this->getUtils()->translate('Forgot Password?');
273+
}
263274
}

app/site/controllers/Frontend/Users/Profile.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,4 +198,15 @@ public function formSubmitted(FAPI\Form $form, &$form_state)
198198

199199
return $this->doRedirect($this->getControllerUrl());
200200
}
201+
202+
/**
203+
* {@inheritdoc}
204+
*
205+
* @return string
206+
* @throws BasicException
207+
*/
208+
public function getRouteName()
209+
{
210+
return $this->getUtils()->translate('User profile');
211+
}
201212
}

app/site/cron_tasks/SearchManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
use \App\Base\Abstracts\ContainerAwareObject;
2222

2323
/**
24-
* Cron HeartBeat
24+
* Cron Search Related
2525
*/
2626
class SearchManager extends ContainerAwareObject
2727
{

0 commit comments

Comments
 (0)