PHP Classes

File: tests/sample-app/plugins/http-request-logger/config/set-hooks.php

Recommend this page to a friend!
  Classes of Josantonius   PHP HTTP Request Logger   tests/sample-app/plugins/http-request-logger/config/set-hooks.php   Download  
File: tests/sample-app/plugins/http-request-logger/config/set-hooks.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP HTTP Request Logger
Store details about the HTTP request in a database
Author: By
Last change:
Date: 6 years ago
Size: 572 bytes
 

Contents

Class file image Download
<?php
/**
 * Save HTTP request information to the database.
 *
 * @author Josantonius <hello@josantonius.com>
 * @copyright 2017 - 2018 (c) Josantonius - HTTP Request Logger
 * @license https://opensource.org/licenses/MIT - The MIT License (MIT)
 * @link https://github.com/eliasis-framework/http-request-logger.git
 * @since 1.0.0
 */
use Eliasis\Complement\Type\Plugin;

$controller = Plugin::HttpRequestLogger()->getOption('namespaces', 'controller');

return [
   
'hooks' => [
        [
'plugin-load', [$controller . 'Launcher', 'init'], 8, 0]
    ],
];