leilukin-tumbleblog/includes/interface/Controller.php

19 lines
496 B
PHP
Raw Permalink Normal View History

2024-06-20 14:10:42 +00:00
<?php
/**
* Interface: Controller
* Describes the functions required by Controller implementations.
*/
interface Controller {
/**
* Function: parse
* Route constructor calls this to determine the action.
*/
public function parse($route): ?string;
/**
* Function: exempt
* Route constructor calls this to determine "view_site" exemptions.
*/
public function exempt($action): bool;
}