add constante for the app id and the app name

This commit is contained in:
Simon Vieille 2020-09-21 11:28:55 +02:00
commit 9a67c165bd
Signed by: deblan
GPG key ID: 03383D15A1D31745
9 changed files with 89 additions and 77 deletions

View file

@ -21,6 +21,7 @@ namespace OCA\SideMenu\Settings;
use OCP\IL10N;
use OCP\IURLGenerator;
use OCP\Settings\IIconSection;
use OCA\SideMenu\AppInfo\Application;
class AdminSection implements IIconSection
{
@ -52,7 +53,7 @@ class AdminSection implements IIconSection
*/
public function getID()
{
return 'side_menu';
return Application::APP_ID;
}
/**
@ -63,7 +64,7 @@ class AdminSection implements IIconSection
*/
public function getName()
{
return $this->l->t('Side menu');
return $this->l->t(Application::APP_NAME);
}
/**