. * * @package phpservermon * @author Pepijn Over * @copyright Copyright (c) 2008-2015 Pepijn Over * @license http://www.gnu.org/licenses/gpl.txt GNU GPL v3 * @version Release: @package_version@ * @link http://www.phpservermonitor.org/ * @since phpservermon 2.1 **/ namespace psm\Module; use psm\Service\Database; use Symfony\Component\DependencyInjection\ContainerAwareInterface; interface ControllerInterface extends ContainerAwareInterface { public function __construct(Database $db, \Twig_Environment $twig); /** * Run the controller */ public function run(); /** * Get the minimum required user level for this controller * @return int */ public function getMinUserLevelRequired(); /** * Get custom key for CSRF validation * @return string */ public function getCSRFKey(); }