Skip to content

Commit

Permalink
Merge pull request #294 from php-school/05-09-remove_temporary_soluti…
Browse files Browse the repository at this point in the history
…on_mapper

Remove temporary solution mapper
  • Loading branch information
AydinHassan committed May 17, 2024
2 parents 5345e8b + 1383e65 commit a35a0e1
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 156 deletions.
1 change: 0 additions & 1 deletion src/Solution/DirectorySolution.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ public function __construct(string $directory, string $entryPoint, array $exclus
*/
public static function fromDirectory(string $directory, array $exclusions = [], $entryPoint = 'solution.php'): self
{
$directory = InTempSolutionMapper::mapDirectory($directory);
return new self($directory, $entryPoint, array_merge($exclusions, ['composer.lock', 'vendor']));
}

Expand Down
58 changes: 0 additions & 58 deletions src/Solution/InTempSolutionMapper.php

This file was deleted.

2 changes: 1 addition & 1 deletion src/Solution/SingleFileSolution.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function __construct(string $file)
*/
public static function fromFile(string $file): self
{
return new self(InTempSolutionMapper::mapFile($file));
return new self($file);
}

/**
Expand Down
96 changes: 0 additions & 96 deletions test/Solution/InTempSolutionMapperTest.php

This file was deleted.

0 comments on commit a35a0e1

Please sign in to comment.