$path
$path : ?\phpDocumentor\Path
Locates the cache folder and ensures that the Symfony Cache is routed to that folder.
Contrary to the way Symfony regularly works, the cache folder can be provided by the configuration and should be set at runtime.
This class plays two roles in this process:
As long as all components that want to cache use this class; then that will ensure that cache is always written to the same location.
Caveat: this class does not change the location of the Symfony 'app' and 'system' cache pools by design; the Symfony internal cache is still stored in folder dictated by {@see \phpDocumentor\Kernel::getCacheDir()}.