Skip to content

Allow configuring the "extra.symfony.root-dir" of the Symfony app #448

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

Merged
merged 1 commit into from
Dec 19, 2018
Merged

Allow configuring the "extra.symfony.root-dir" of the Symfony app #448

merged 1 commit into from
Dec 19, 2018

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Dec 11, 2018

Fixes #243
and makes path management a bit more flexible.

@@ -97,7 +97,7 @@ public function copyFile(string $source, string $target, bool $overwrite = false
throw new LogicException(sprintf('File "%s" does not exist!', $source));
}

copy($source, $target);
file_put_contents($target, $this->options->expandTargetDir(file_get_contents($source)));
Copy link
Member Author

Choose a reason for hiding this comment

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

This replaces eg %CONFIG_DIR% in files copied from packages (same for recipes below).
Will allow replacing config/bootstrap.php by %CONFIG_DIR%/bootstrap.php in a few months when everyone will have moved to a more recent flex version.

@nicolas-grekas nicolas-grekas merged commit 186bee1 into symfony:master Dec 19, 2018
nicolas-grekas added a commit that referenced this pull request Dec 19, 2018
…mfony app (nicolas-grekas)

This PR was merged into the 1.1-dev branch.

Discussion
----------

 Allow configuring the "extra.symfony.root-dir" of the Symfony app

Fixes #243
and makes path management a bit more flexible.

Commits
-------

186bee1 Allow configuring the "extra.symfony.root-dir" of the Symfony app
@nicolas-grekas nicolas-grekas deleted the getcwd branch December 19, 2018 10:06
tgalopin pushed a commit to tgalopin/flex that referenced this pull request Dec 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants