Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#684 Relative Symlinks #685

Closed
wants to merge 3 commits into from
Closed

#684 Relative Symlinks #685

wants to merge 3 commits into from

Conversation

dwkitchen
Copy link

Based on Symfony/Filesystem->makePathRelative()

Based on Symfony/Filesystem->makePathRelative()
@@ -236,7 +236,36 @@ protected function getMap()
}

if ($this->isRelative()) {
$fromDir = $fs->getDir($this->getProject())->getPath();
$endPath = $fs->getDir($this->getProject())->getAbsolutePath();
$startPath = $this->getLink();
Copy link
Author

@dwkitchen dwkitchen Mar 3, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This only works if the link path given is absolute, how to get absolute path from $this->getLink()?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can get the absolute path for $this->getLink() in combination with PhingFile like:

$startPath = (new PhingFile($this->getLink()))->getAbsolutePath();

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@siad007 Thanks for that updated and working with a relative path to the project root is given in the command.

@ghost ghost mentioned this pull request Mar 18, 2017
@mrook mrook mentioned this pull request Feb 13, 2018
@stale
Copy link

stale bot commented Feb 13, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Feb 13, 2018
@mrook
Copy link
Member

mrook commented Feb 14, 2018

Closed in favor of #695 - thanks for your contribution!

@mrook mrook closed this Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

3 participants