CacheMiddleware

in package
Implements Middleware

Interfaces, Classes & Used Traits

Middleware

Properties

private$cache  : \Symfony\Contracts\Cache\CacheInterface                

private$logger  : \Psr\Log\LoggerInterface                

Methods

public__construct(CacheInterface $files, LoggerInterface $logger) : mixed

Parameters

$files : CacheInterface
$logger : LoggerInterface

Returns

mixed

Executes this middle ware class.

publicexecute(CreateCommand $command, callable $next) : File

A middle ware class MUST return a File object or call the $next callable.

Parameters

$command : CreateCommand
$next : callable

Throws

\Psr\Cache\InvalidArgumentException

Returns

File