You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
479 B
PHP
24 lines
479 B
PHP
<?php
|
|
|
|
namespace Engelsystem\Controllers;
|
|
|
|
use Engelsystem\Http\Validation\ValidatesRequest;
|
|
|
|
abstract class BaseController
|
|
{
|
|
use ValidatesRequest;
|
|
|
|
/** @var string[]|string[][] A list of Permissions required to access the controller or certain pages */
|
|
protected $permissions = [];
|
|
|
|
/**
|
|
* Returns the list of permissions
|
|
*
|
|
* @return string[]|string[][]
|
|
*/
|
|
public function getPermissions()
|
|
{
|
|
return $this->permissions;
|
|
}
|
|
}
|