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

Allow setting path constants in app/Console/cake.php as you can in webro... #1507

Merged
merged 1 commit into from
Aug 11, 2013

Conversation

ADmad
Copy link
Member

@ADmad ADmad commented Aug 11, 2013

...ot/index.php

@markstory
Copy link
Member

Shouldn't the cli flag take precedence over the defined constant? That might get a bit messy though.

@ADmad
Copy link
Member Author

ADmad commented Aug 11, 2013

@markstory Not sure what you mean. The cli flag webroot only contains directory name "webroot" not the full path.

@josegonzalez
Copy link
Member

Can we make all constants conditional? I'd like to be able to set all of them from CLI or nginx via ENV vars.

@ADmad
Copy link
Member Author

ADmad commented Aug 11, 2013

@josegonzalez With this patch all are. ROOT, APP_DIR, APP are the only ones that aren't conditional since they are already configurable through cli params.

@josegonzalez
Copy link
Member

ah k.

lorenzo added a commit that referenced this pull request Aug 11, 2013
Allow setting path constants in app/Console/cake.php as you can in webro...
@lorenzo lorenzo merged commit 3355544 into cakephp:master Aug 11, 2013
@markstory
Copy link
Member

Ignore me, my comment made no sense in retrospect.

@ADmad ADmad deleted the 2.3-console-constants branch March 30, 2014 15:55
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.

None yet

7 participants