haxorqt
Home
Console
Upload
information
Create File
Create Folder
About
:
/
home
/
sc1jaqa5103
/
prod.puv-editions.fr
/
wp-content
/
plugins
/
admin-columns-pro
/
classes
/
Filename :
Controller.php
back
Copy
<?php namespace ACP; use AC\Request; use ACP\Exception\ControllerException; abstract class Controller { protected Request $request; public function __construct(Request $request) { $this->request = $request; } public function dispatch(string $action): void { $method = $action . '_action'; if ( ! is_callable([$this, $method])) { throw ControllerException::from_invalid_action($action); } $this->$method(); } }