Skip to content

Commit

Permalink
chore: move cache dir out of src
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-feek committed Jun 21, 2021
1 parent dea68b5 commit e311dc5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
@@ -1,5 +1,5 @@
composer.phar
/vendor/
composer.lock
src/cache/*.stubphp
cache/*.stubphp
.DS_Store
File renamed without changes.
5 changes: 2 additions & 3 deletions psalm.xml
Expand Up @@ -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>
Expand All @@ -27,7 +26,7 @@
</errorLevel>
</PropertyNotSetInConstructor>
</issueHandlers>

<stubs>
<file name="src/Stubs/LumenApplication.stubphp"/>
</stubs>
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin.php
Expand Up @@ -30,7 +30,7 @@ public function __invoke(RegistrationInterface $registration, ?SimpleXMLElement
$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);
Expand Down

0 comments on commit e311dc5

Please sign in to comment.