public function __construct(CacheStrategyInterface $cacheStrategy = null) { $this->cacheStorage = $cacheStrategy !== null ? $cacheStrategy : new PrivateCacheStrategy(); register_shutdown_function([$this, 'purgeReValidation']); }