Skip to content

Commit 30fc4ee

Browse files
committed
feature #15905 [3.0][Config] Removed isFresh() related functionality (WouterJ)
This PR was merged into the 3.0-dev branch. Discussion ---------- [3.0][Config] Removed isFresh() related functionality | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | yes | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- 4cdae98 Removed Resource#isFresh() related functionality
2 parents eb24f24 + 4cdae98 commit 30fc4ee

File tree

5 files changed

+2
-62
lines changed

5 files changed

+2
-62
lines changed

src/Symfony/Bundle/FrameworkBundle/Resources/config/services.xml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,5 @@
4949
<tag name="config_cache.resource_checker" priority="-990" />
5050
</service>
5151

52-
<!--
53-
This service is deprecated and will be removed in 3.0.
54-
-->
55-
<service class="Symfony\Component\Config\Resource\BCResourceInterfaceChecker" public="false">
56-
<tag name="config_cache.resource_checker" priority="-1000" />
57-
</service>
58-
5952
</services>
6053
</container>

src/Symfony/Component/Config/CHANGELOG.md

Lines 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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Component\Config;
1313

14-
use Symfony\Component\Config\Resource\BCResourceInterfaceChecker;
1514
use Symfony\Component\Config\Resource\SelfCheckingResourceChecker;
1615

1716
/**
@@ -21,11 +20,6 @@
2120
* \Symfony\Component\Config\Resource\SelfCheckingResourceInterface will
2221
* be used to check cache freshness.
2322
*
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-
*
2923
* @author Fabien Potencier <fabien@symfony.com>
3024
* @author Matthias Pigulla <mp@webfactory.de>
3125
*/
@@ -41,7 +35,6 @@ public function __construct($file, $debug)
4135
{
4236
parent::__construct($file, array(
4337
new SelfCheckingResourceChecker(),
44-
new BCResourceInterfaceChecker(),
4538
));
4639
$this->debug = (bool) $debug;
4740
}

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

Lines changed: 0 additions & 36 deletions
This file was deleted.

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

Lines 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)