Skip to content
This repository has been archived by the owner on Jan 10, 2020. It is now read-only.

Remove include of application configuration #27

Merged

Conversation

weierophinney
Copy link
Member

Per #24, include can be problematic on applications that use ENV variables
or constants inside their application.config.php. This patch removes the
include in favor of doing static analysis via regexp; it's far from perfect,
but will work in the majority of use cases.

include is still required, however, if you want to selectively enable
modules.

Per zfcampus#24, `include` can be problematic on applications that use ENV variables or
constants inside their `application.config.php`. This patch removes the
`include` in favor of doing static analysis via regexp; it's far from perfect,
but will work in the majority of use cases.

`include` is still required, however, if you want to selectively enable modules.

CS fixes
- Updated php-cs-fixer
- php-cs-fixer is being too aggressive on `include` statements; moved include
  out of constructor call to prevent fixer changes in the future.
@weierophinney weierophinney added this to the 1.0.4 milestone Jul 15, 2014
@weierophinney weierophinney merged commit ee25f32 into zfcampus:master Jul 15, 2014
weierophinney added a commit that referenced this pull request Jul 15, 2014
weierophinney added a commit that referenced this pull request Jul 15, 2014
@weierophinney weierophinney deleted the hotfix/application-config branch July 15, 2014 15:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant