/** * Constructor * * @param array $config */ public function __construct(array $config = []) { parent::__construct($config); $request = Services::request(null, true); $this->json['request_uri'] = (string) $request->uri; Hooks::on('post_controller', [$this, 'sendLogs'], HOOKS_PRIORITY_HIGH); }