-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #25: Remove custom path trait in favour of Symfony Filesystem.
- Loading branch information
Showing
7 changed files
with
89 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
namespace EC\OpenEuropa\TaskRunner\Contract; | ||
|
||
/** | ||
* Interface FilesystemAwareTrait | ||
* | ||
* @package EC\OpenEuropa\TaskRunner\Contract | ||
*/ | ||
interface FilesystemAwareInterface | ||
{ | ||
/** | ||
* @return \Symfony\Component\Filesystem\Filesystem | ||
*/ | ||
public function getFilesystem(); | ||
|
||
/** | ||
* @param \Symfony\Component\Filesystem\Filesystem $filesystem | ||
* | ||
* @return $this | ||
*/ | ||
public function setFilesystem($filesystem); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
namespace EC\OpenEuropa\TaskRunner\Traits; | ||
|
||
/** | ||
* Trait FilesystemAwareTrait | ||
* | ||
* @package EC\OpenEuropa\TaskRunner\Traits | ||
*/ | ||
trait FilesystemAwareTrait | ||
{ | ||
/** | ||
* @var \Symfony\Component\Filesystem\Filesystem | ||
*/ | ||
protected $filesystem; | ||
|
||
/** | ||
* @return \Symfony\Component\Filesystem\Filesystem | ||
*/ | ||
public function getFilesystem() | ||
{ | ||
return $this->filesystem; | ||
} | ||
|
||
/** | ||
* @param \Symfony\Component\Filesystem\Filesystem $filesystem | ||
* | ||
* @return FilesystemAwareTrait | ||
*/ | ||
public function setFilesystem($filesystem) | ||
{ | ||
$this->filesystem = $filesystem; | ||
|
||
return $this; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters