From e311dc53afe9e952f45bbfbf78ccf28a34e642d9 Mon Sep 17 00:00:00 2001 From: fiachra mcdermott Date: Mon, 21 Jun 2021 16:45:30 -0700 Subject: [PATCH] chore: move cache dir out of src --- .gitignore | 2 +- {src/cache => cache}/README.md | 0 psalm.xml | 5 ++--- src/Plugin.php | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) rename {src/cache => cache}/README.md (100%) diff --git a/.gitignore b/.gitignore index 594ca0a..356ea63 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ composer.phar /vendor/ composer.lock -src/cache/*.stubphp +cache/*.stubphp .DS_Store diff --git a/src/cache/README.md b/cache/README.md similarity index 100% rename from src/cache/README.md rename to cache/README.md diff --git a/psalm.xml b/psalm.xml index 12f41c2..40d8a99 100644 --- a/psalm.xml +++ b/psalm.xml @@ -10,9 +10,8 @@ - + - @@ -27,7 +26,7 @@ - + diff --git a/src/Plugin.php b/src/Plugin.php index 759c2a9..3d1f9f1 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -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);