Skip to content

[Container] Add RectorConfig::containerCacheDirectory()#3490

Merged
TomasVotruba merged 7 commits intomainfrom
add-rector-config-container-cache-dir
Mar 19, 2023
Merged

[Container] Add RectorConfig::containerCacheDirectory()#3490
TomasVotruba merged 7 commits intomainfrom
add-rector-config-container-cache-dir

Conversation

@samsonasik
Copy link
Copy Markdown
Member

@samsonasik samsonasik commented Mar 19, 2023

This is new config to resolve rectorphp/rector#7700 to able to configure container cache directory beside the cache directory that used in PHPStanServicesFactory.

so on shared hosting, the cache and container cache can be configured:

    $rectorConfig->cacheDirectory('/project/var/rector_cached_files');
    $rectorConfig->containerCacheDirectory('/project/var');

/cc @scottybcoder @ernestbuffington

@samsonasik
Copy link
Copy Markdown
Member Author

All checks have passed 🎉 @TomasVotruba it is ready for review.

@TomasVotruba TomasVotruba merged commit 5371408 into main Mar 19, 2023
@TomasVotruba TomasVotruba deleted the add-rector-config-container-cache-dir branch March 19, 2023 20:23
samsonasik added a commit that referenced this pull request May 8, 2023
* [Container] Add RectorConfig::containerCacheDirectory()

* final touch: future comment

* final touch: clean up

* final touch: clean up

* final touch: clean up

* final touch: clean up

* final touch: clean up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rector sys_get_temp_dir() bug in PHP 8.x

2 participants