File tree 2 files changed +10
-0
lines changed
src/Symfony/Component/Config
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ After: the code will work as expected and it will restrict the values of the
23
23
24
24
* deprecated the ` ResourceInterface::isFresh() ` method. If you implement custom resource types and they
25
25
can be validated that way, make them implement the new ` SelfCheckingResourceInterface ` .
26
+ * deprecated the getResource() method in ResourceInterface. You can still call this method
27
+ on concrete classes implementing the interface, but it does not make sense at the interface
28
+ level as you need to know about the particular type of resource at hand to understand the
29
+ semantics of the returned value.
26
30
27
31
2.7.0
28
32
-----
Original file line number Diff line number Diff line change @@ -47,6 +47,12 @@ public function isFresh($timestamp);
47
47
* Returns the tied resource.
48
48
*
49
49
* @return mixed The resource
50
+ *
51
+ * @deprecated since 2.8, to be removed in 3.0. As there are many different kinds of resource,
52
+ * a single getResource() method does not make sense at the interface level. You
53
+ * can still call getResource() on implementing classes, probably after performing
54
+ * a type check. If you know the concrete type of Resource at hand, the return value
55
+ * of this method may make sense to you.
50
56
*/
51
57
public function getResource ();
52
58
}
You can’t perform that action at this time.
0 commit comments