PHP Classes

File: src/Discretion/Handlers/ControlPanel/Contacts.php

Recommend this page to a friend!
  Classes of Scott Arciszewski   Discretion   src/Discretion/Handlers/ControlPanel/Contacts.php   Download  
File: src/Discretion/Handlers/ControlPanel/Contacts.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Discretion
Show contact forms and deliver encrypted mail
Author: By
Last change:
Date: 2 years ago
Size: 894 bytes
 

Contents

Class file image Download
<?php
declare(strict_types=1);
namespace
ParagonIE\Discretion\Handlers\ControlPanel;

use
ParagonIE\Discretion\Discretion;
use
ParagonIE\Discretion\HandlerInterface;
use
Psr\Http\Message\{
   
RequestInterface,
   
ResponseInterface
};

/**
 * Class Index
 * @package ParagonIE\Discretion\Handlers\ControlPanel
 */
class Contacts implements HandlerInterface
{
   
/**
     * Contacts constructor.
     */
   
public function __construct()
    {
       
Discretion::setTwigVar('active_link', 'contacts');
    }

   
/**
     * @param RequestInterface $request
     * @param ResponseInterface $response
     * @param array $args
     * @return ResponseInterface
     */
   
public function __invoke(
       
RequestInterface $request,
       
ResponseInterface $response,
        array
$args = []
    ):
ResponseInterface {
        return
Discretion::view('control-panel/contacts.twig');
    }
}