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

Is app/defaults/services.yml distributed? #28

Closed
openbrian opened this issue Jun 22, 2015 · 1 comment
Closed

Is app/defaults/services.yml distributed? #28

openbrian opened this issue Jun 22, 2015 · 1 comment

Comments

@openbrian
Copy link
Contributor

Is it correct to assume app/default/services is distributed? In other words if Amp is packaged, would it be distributed to every installation of Amp? I ask because a simple config command would not put ram_disk_type in my .amp repo, but Application.php assumes it's available.

@totten
Copy link
Collaborator

totten commented Jun 22, 2015

Correct -- app/default/services.yml is the read-only version distributed with the app. When a user performs configuration (with amp config via service config.repository) the local preferences are written out to ~/.amp/services.yml (which overrides any defaults from the distributed copy).

(In Application.php, the variable $appDir might be poorly named -- it really points to ~/.amp. When services/parameters are consumed at runtime, they are actually loaded via $configDirectories -- which is a search-path that includes both ~/.amp and app/default.)

@totten totten closed this as completed Jun 22, 2015
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

No branches or pull requests

2 participants