fix: Определения типов
This commit is contained in:
parent
987d4097c9
commit
acbf2c847d
10 changed files with 42 additions and 19 deletions
|
|
@ -14,7 +14,7 @@ use Exception,
|
|||
/**
|
||||
* Контроллер страниц
|
||||
*/
|
||||
class Action
|
||||
class Action implements ActionInterface
|
||||
{
|
||||
|
||||
const TEMPLATE_EXTENSION = ".html"; // Расширение для шаблонов
|
||||
|
|
@ -35,7 +35,7 @@ class Action
|
|||
public Database $db;
|
||||
|
||||
// Фильтры
|
||||
/** @var ?ActionAccess */
|
||||
/** @var ?\ctiso\Filter\ActionAccess */
|
||||
public $access = null; // Обьект хранит параметры доступа
|
||||
public $logger = null; // Обьект для ведения лога
|
||||
|
||||
|
|
@ -220,7 +220,6 @@ class Action
|
|||
$access = $this->access;
|
||||
$url = new Url();
|
||||
|
||||
//print_r([$name, $param]);
|
||||
if ($access == null || $access->checkAction($actionName)) {
|
||||
$moduleName = explode("\\", strtolower(get_class($this)));
|
||||
if (count($moduleName) > 2) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue