Skip to content

Use $this->getRootDir() instead of __DIR__ #5173

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
Apr 26, 2015
Merged

Conversation

manelselles
Copy link
Contributor

Use $this->getRootDir() when loading the configuration file from AppKernel.

Symfony standard version uses $this->getRootDir() so we should have the same version on both sites.

Use $this->getRootDir() when loading the configuration file from AppKernel. 

Symfony standard version uses $this->getRootDir() so we should have the same version on both sites.
@xabbuh
Copy link
Member

xabbuh commented Apr 13, 2015

Imho this change makes sense.

@manelselles
Copy link
Contributor Author

I realized the same problem is happening at http://symfony.com/doc/2.3/cookbook/configuration/configuration_organization.html 3 times.

@xabbuh
Copy link
Member

xabbuh commented Apr 13, 2015

@manelselles Can you please update them as well?

@manelselles
Copy link
Contributor Author

Done at #5174

@wouterj
Copy link
Member

wouterj commented Apr 26, 2015

Nice PR! Thank you for taking care of keeping the docs in sync @manelselles.

@wouterj wouterj merged commit e0437ea into symfony:2.3 Apr 26, 2015
wouterj added a commit that referenced this pull request Apr 26, 2015
This PR was merged into the 2.3 branch.

Discussion
----------

Use $this->getRootDir() instead of __DIR__

Use $this->getRootDir() when loading the configuration file from AppKernel.

Symfony standard version uses $this->getRootDir() so we should have the same version on both sites.

Commits
-------

e0437ea Use $this->getRootDir() instead of __DIR__
@manelselles manelselles deleted the patch-2 branch May 8, 2015 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants