Thanks to visit codestin.com
Credit goes to github.com

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

Make include_path functionality of Config and Translator opt-in#4767

Merged
ezimuel merged 5 commits into
zendframework:developfrom
weierophinney:hotfix/4767
Jul 22, 2013
Merged

Make include_path functionality of Config and Translator opt-in#4767
ezimuel merged 5 commits into
zendframework:developfrom
weierophinney:hotfix/4767

Conversation

@weierophinney
Copy link
Copy Markdown
Member

#4515 (which addresses #4443) and #4574 both introduce features that use PHP's include_path to identify application assets. While the functionality has reasonable use cases, as implemented, it introduces some performance impact, as the components look on the include_path for each and every file. Additionally, if . is not on the include_path, files that resolve from the current working directory will not resolve.

- Added `setUseIncludePath()` call to translator adapters
- added flag, Factory::USE_INCLUDE_PATH, as second argument to config
  factory
- You must pass the `$useIncludePath` to either `fromFile()` or
  `fromFiles()` for it to be used. Constants were created with boolean
  values for those using IDEs.
- Created AbstractFileLoader, which provides implementation details for
  when/how to use the include_path to load translation file assets.
- Updated INI, gettext, and PHP loaders to extend AbstractFileLoader.
- Added to translator loader plugin manager
@ghost ghost assigned weierophinney Jul 1, 2013
@weierophinney
Copy link
Copy Markdown
Member Author

This replaces #4766

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage remained the same when pulling 5a3d9e7 on weierophinney:hotfix/4767 into ecbb3dd on zendframework:develop.

- Remove constants, per @DASPRiD
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage remained the same when pulling 5d57d1d on weierophinney:hotfix/4767 into ecbb3dd on zendframework:develop.

@ezimuel ezimuel merged commit 5d57d1d into zendframework:develop Jul 22, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants