8000 minor #18422 [DependencyInjection] Fix tests of #18144 (HeahDude) · symfony/symfony@a9dcce1 · GitHub
[go: up one dir, main page]

Skip to content

Commit a9dcce1

Browse files
minor #18422 [DependencyInjection] Fix tests of #18144 (HeahDude)
This PR was squashed before being merged into the 3.1-dev branch (closes #18422). Discussion ---------- [DependencyInjection] Fix tests of #18144 | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | ~ | License | MIT | Doc PR | ~ Commits ------- 5e7dbae [DependencyInjection] Fix tests of #18144
2 parents 85506a0 + 5e7dbae commit a9dcce1

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