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.
|
|
|
|
*/
|
2025-01-13 09:56:01 +00:00
|
|
|
public function parse(
|
|
|
|
$route
|
|
|
|
): ?string;
|
2024-06-20 14:10:42 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Function: exempt
|
|
|
|
* Route constructor calls this to determine "view_site" exemptions.
|
|
|
|
*/
|
2025-01-13 09:56:01 +00:00
|
|
|
public function exempt(
|
|
|
|
$action
|
|
|
|
): bool;
|
2024-06-20 14:10:42 +00:00
|
|
|
}
|