Skip to content

Commit 5e7dbae

Browse files
HeahDudenicolas-grekas
authored andcommitted
[DependencyInjection] Fix tests of symfony#18144
1 parent cef7e5b commit 5e7dbae

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

src/Symfony/Component/DependencyInjection/Config/AutowireServiceResource.php

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\DependencyInjection\Config;
1313

1414
use Symfony\Component\Config\Resource\SelfCheckingResourceInterface;
15-
use Symfony\Component\DependencyInjection\Compiler\AutowirePass;
1615

1716
class AutowireServiceResource implements SelfCheckingResourceInterface, \Serializable
1817
{
@@ -33,20 +32,7 @@ public function isFresh($timestamp)
3332
return false;
3433
}
3534

36-
// has the file *not* been modified? Definitely fresh
37-
if (@filemtime($this->filePath) <= $timestamp) {
38-
return true;
39-
}
40-
41-
try {
42-
$reflectionClass = new \ReflectionClass($this->class);
43-
} catch (\ReflectionException $e) {
44-
// the class does not exist anymore!
45-
46-
return false;
47-
}
48-
49-
return AutowirePass::createResourceForClass($reflectionClass);
35+
return @filemtime($this->filePath) <= $timestamp;
5036
}
5137

5238
public function __toString()

0 commit comments

Comments
 (0)