$serviceLocator
$serviceLocator : \Pivot\Core\Middleware\Pivot\Core\Services\ServliceLocator
Service locator
Service Aware Cache Note, for public routes we do not care about any of this and dont need to load all these dependencies, thus the cache manager is set in several places.
__invoke(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, callable $next) : \Psr\Http\Message\ResponseInterface
Starts the session
\Psr\Http\Message\ServerRequestInterface | $request | PSR7 request |
\Psr\Http\Message\ResponseInterface | $response | PSR7 response |
callable | $next | Next middleware |