Skip to content

Commit

Permalink
Supporting our vendor/ structure when using relative require()s
Browse files Browse the repository at this point in the history
  • Loading branch information
karoun committed Jul 2, 2018
1 parent ee04f12 commit 7928616
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Writer.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ public function writeToFile(
$is_dev = $is_dev ? 'true' : 'false';

if ($this->relativeAutoloadRoot) {
$root = '__DIR__.\'/../\'';
$root = '__DIR__.\'/../../\'';
$requires = $files->map(
$file ==> '__DIR__.'.var_export(
'/../'.$this->relativePath($file),
'/../../'.$this->relativePath($file),
true,
),
);
Expand Down

0 comments on commit 7928616

Please sign in to comment.