chore: move cache dir out of src

This commit is contained in:
fiachra mcdermott 2021-06-21 16:45:30 -07:00
parent dea68b56ba
commit e311dc53af
4 changed files with 4 additions and 5 deletions

2
.gitignore vendored
View File

@ -1,5 +1,5 @@
composer.phar
/vendor/
composer.lock
src/cache/*.stubphp
cache/*.stubphp
.DS_Store

View File

@ -10,9 +10,8 @@
<directory name="src" />
<ignoreFiles>
<directory name="vendor" />
<directory name="src/cache" />
<directory name="cache" />
<directory name="src/Stubs" />
<directory name="src/cache" />
<directory name="tests" />
</ignoreFiles>
</projectFiles>

View File

@ -30,7 +30,7 @@ class Plugin implements PluginEntryPointInterface
$app = ApplicationProvider::bootApp();
$fake_filesystem = new FakeFilesystem();
$view_factory = $this->getViewFactory($app, $fake_filesystem);
$cache_dir = __DIR__ . DIRECTORY_SEPARATOR . 'cache' . DIRECTORY_SEPARATOR;
$cache_dir = dirname(__DIR__) . DIRECTORY_SEPARATOR . 'cache' . DIRECTORY_SEPARATOR;
$this->ingestFacadeStubs($registration, $app, $fake_filesystem, $view_factory, $cache_dir);
$this->ingestMetaStubs($registration, $app, $fake_filesystem, $view_factory, $cache_dir);