Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 33ae3ce

Browse filesBrowse files
committed
Removed Resource#isFresh() related functionality
1 parent 967c0e4 commit 33ae3ce
Copy full SHA for 33ae3ce

File tree

Expand file treeCollapse file tree

4 files changed

+2
-54
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+2
-54
lines changed

‎src/Symfony/Component/Config/CHANGELOG.md

Copy file name to clipboardExpand all lines: src/Symfony/Component/Config/CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ CHANGELOG
55
-----
66

77
* removed `ReferenceDumper` class
8+
* removed the `ResourceInterface::isFresh()` method
9+
* removed `BCResourceInterfaceChecker` class
810

911
2.8.0
1012
-----

‎src/Symfony/Component/Config/ConfigCache.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Config/ConfigCache.php
-6Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@
2121
* \Symfony\Component\Config\Resource\SelfCheckingResourceInterface will
2222
* be used to check cache freshness.
2323
*
24-
* During a transition period, also instances of
25-
* \Symfony\Component\Config\Resource\ResourceInterface will be checked
26-
* by means of the isFresh() method. This behaviour is deprecated since 2.8
27-
* and will be removed in 3.0.
28-
*
2924
* @author Fabien Potencier <fabien@symfony.com>
3025
* @author Matthias Pigulla <mp@webfactory.de>
3126
*/
@@ -41,7 +36,6 @@ public function __construct($file, $debug)
4136
{
4237
parent::__construct($file, array(
4338
new SelfCheckingResourceChecker(),
44-
new BCResourceInterfaceChecker(),
4539
));
4640
$this->debug = (bool) $debug;
4741
}

‎src/Symfony/Component/Config/Resource/BCResourceInterfaceChecker.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Config/Resource/BCResourceInterfaceChecker.php
-36Lines changed: 0 additions & 36 deletions
This file was deleted.

‎src/Symfony/Component/Config/Resource/ResourceInterface.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Config/Resource/ResourceInterface.php
-12Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,6 @@ interface ResourceInterface
3131
*/
3232
public function __toString();
3333

34-
/**
35-
* Returns true if the resource has not been updated since the given timestamp.
36-
*
37-
* @param int $timestamp The last time the resource was loaded
38-
*
39-
* @return bool True if the resource has not been updated, false otherwise
40-
*
41-
* @deprecated since 2.8, to be removed in 3.0. If your resource can check itself for
42-
* freshness implement the SelfCheckingResourceInterface instead.
43-
*/
44-
public function isFresh($timestamp);
45-
4634
/**
4735
* Returns the tied resource.
4836
*

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.