public function createCacheForDevMode(CacheRecorder $recorder, Environment $env) : CacheProvider
    {
        return new ProfilingCacheDecorator(
            $this->createCache($env), // TODO: we need service decorators so we can avoid the hard call to createCache here
            $recorder
        );
    }
public function createCacheForDevMode(CacheRecorder $recorder, Environment $env) : CacheProvider
    {
        return new ProfilingCacheDecorator(
            $this->createCache($env), // TODO: we need service decorators so we can avoid the hard call to createCache here
            $recorder
        );
    }
@Di\Service("cache")
@Di\Apply\IfConfig("env.devMode")

@param CacheRecorder $recorder
@param Environment   $env

@return CacheProvider