From f04c77917634a20e0bd0f1c0adc54225d4a8accd Mon Sep 17 00:00:00 2001 From: Artem Vasilev Date: Sat, 9 Mar 2024 16:49:42 +0300 Subject: [PATCH] _JEXEC & copyright --- .../src/Controller/ClientController.php | 22 ++++++++++++++----- .../src/Controller/ClientsController.php | 11 +++++++++- .../src/Controller/DisplayController.php | 11 +++++++++- 3 files changed, 36 insertions(+), 8 deletions(-) diff --git a/com_oauthserver/administrator/src/Controller/ClientController.php b/com_oauthserver/administrator/src/Controller/ClientController.php index 69f2edd..73b8a19 100644 --- a/com_oauthserver/administrator/src/Controller/ClientController.php +++ b/com_oauthserver/administrator/src/Controller/ClientController.php @@ -1,4 +1,11 @@ + * @license MIT; see LICENSE.txt + **/ namespace Webmasterskaya\Component\OauthServer\Administrator\Controller; @@ -8,6 +15,8 @@ use Joomla\CMS\MVC\Controller\FormController; use Joomla\CMS\MVC\Factory\MVCFactoryInterface; use Joomla\Input\Input; +\defined('_JEXEC') or die; + class ClientController extends FormController { /** @@ -20,11 +29,12 @@ class ClientController extends FormController protected $text_prefix = 'COM_OAUTHSERVER_CLIENT'; /** - * @param array $config - * @param \Joomla\CMS\MVC\Factory\MVCFactoryInterface|null $factory - * @param \Joomla\CMS\Application\CMSApplication|null $app - * @param \Joomla\Input\Input|null $input - * @param \Joomla\CMS\Form\FormFactoryInterface|null $formFactory + * @param array $config + * @param \Joomla\CMS\MVC\Factory\MVCFactoryInterface|null $factory + * @param \Joomla\CMS\Application\CMSApplication|null $app + * @param \Joomla\Input\Input|null $input + * @param \Joomla\CMS\Form\FormFactoryInterface|null $formFactory + * * @throws \Exception * @since version */ @@ -35,4 +45,4 @@ class ClientController extends FormController $this->registerTask('save2reset', 'save'); } -} \ No newline at end of file +} diff --git a/com_oauthserver/administrator/src/Controller/ClientsController.php b/com_oauthserver/administrator/src/Controller/ClientsController.php index 503d1aa..7868759 100644 --- a/com_oauthserver/administrator/src/Controller/ClientsController.php +++ b/com_oauthserver/administrator/src/Controller/ClientsController.php @@ -1,10 +1,19 @@ + * @license MIT; see LICENSE.txt + **/ namespace Webmasterskaya\Component\OauthServer\Administrator\Controller; use Joomla\CMS\MVC\Controller\AdminController; use Joomla\CMS\MVC\Model\BaseDatabaseModel; +\defined('_JEXEC') or die; + class ClientsController extends AdminController { /** @@ -31,4 +40,4 @@ class ClientsController extends AdminController return parent::getModel($name, $prefix, $config); } -} \ No newline at end of file +} diff --git a/com_oauthserver/administrator/src/Controller/DisplayController.php b/com_oauthserver/administrator/src/Controller/DisplayController.php index 1ef8581..a0ff11f 100644 --- a/com_oauthserver/administrator/src/Controller/DisplayController.php +++ b/com_oauthserver/administrator/src/Controller/DisplayController.php @@ -1,9 +1,18 @@ + * @license MIT; see LICENSE.txt + **/ namespace Webmasterskaya\Component\OauthServer\Administrator\Controller; use Joomla\CMS\MVC\Controller\BaseController; +\defined('_JEXEC') or die; + class DisplayController extends BaseController { /** @@ -14,4 +23,4 @@ class DisplayController extends BaseController * @since 1.0.0 */ protected $default_view = 'clients'; -} \ No newline at end of file +}