CacheMiddleware
in package
implements
Middleware
Interfaces, Classes and Traits
- Middleware
- Middleware can be uses to perform extra steps during the parsing process.
Table of Contents
- $cache : CacheInterface
- $logger : LoggerInterface
- __construct() : mixed
- execute() : File
- Executes this middle ware class.
Properties
$cache
private
CacheInterface
$cache
$logger
private
LoggerInterface
$logger
Methods
__construct()
public
__construct(CacheInterface $files, LoggerInterface $logger) : mixed
Parameters
- $files : CacheInterface
- $logger : LoggerInterface
Return values
mixed —execute()
Executes this middle ware class.
public
execute(Command $command, callable $next) : File
A middle ware class MUST return a File object or call the $next callable.
Parameters
- $command : Command
- $next : callable