-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Config] Delegate creation of ConfigCache instances to a factory. #14178
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
Changes from 1 commit
02159ae
98aa48b
3744edf
282a75a
ae29b82
1730fc3
770ee09
2a058fd
8491dfd
beb307c
dbec920
5a91716
f2c3a24
35488bd
17a55ec
07ecf57
a89db7a
7938349
cb9917f
2016537
beb0a92
afee2bb
4832e1a
7f90bae
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ interface ConfigCacheInterface | |
/** | ||
* Gets the cache file path. | ||
* | ||
* @deprecated since version 2.7, to be removed in 3.0. | ||
* @deprecated since 2.7, to be removed in 3.0. Use getPath() instead. | ||
* @return string The cache file path | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
*/ | ||
public function __toString(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wouldn't it be a better idea to either remove the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You're right! I'm going to remove it. Thanks! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would remove it from the interface and update changelog & upgrade files to only mention the method in the |
||
|
@@ -36,7 +36,7 @@ public function getPath(); | |
/** | ||
* Checks if the cache is still fresh. | ||
* | ||
* @return Boolean true if the cache is fresh, false otherwise | ||
* @return bool true if the cache is fresh, false otherwise | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no need for the extra spacing here And I believe "whether the cache is fresh" is more consistent with other occurences in the Symfony code base |
||
*/ | ||
public function isFresh(); | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to add a deprecation notice (look for
trigger_error()
in Symfony 2.7 for some examples).