-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix #137 by splitting up PhiveXmlConfig into LocalPhiveXmlConfig and …
…GlobalPhiveXmlConfig
- Loading branch information
1 parent
e14c2de
commit 4bd427f
Showing
9 changed files
with
97 additions
and
15 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,17 @@ | ||
<?php | ||
namespace PharIo\Phive; | ||
|
||
use PharIo\FileSystem\Filename; | ||
|
||
class GlobalPhiveXmlConfig extends PhiveXmlConfig { | ||
|
||
/** | ||
* @param InstalledPhar $installedPhar | ||
* | ||
* @return Filename | ||
*/ | ||
protected function getLocation(InstalledPhar $installedPhar) { | ||
return $installedPhar->getLocation()->withAbsolutePath(); | ||
} | ||
|
||
} |
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,17 @@ | ||
<?php | ||
namespace PharIo\Phive; | ||
|
||
use PharIo\FileSystem\Filename; | ||
|
||
class LocalPhiveXmlConfig extends PhiveXmlConfig { | ||
|
||
/** | ||
* @param InstalledPhar $installedPhar | ||
* | ||
* @return Filename | ||
*/ | ||
protected function getLocation(InstalledPhar $installedPhar) { | ||
return $installedPhar->getLocation()->getRelativePathTo($this->getOwnDirectory()); | ||
} | ||
|
||
} |
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
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