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 5e7dbae

Browse filesBrowse files
HeahDudenicolas-grekas
authored andcommitted
[DependencyInjection] Fix tests of #18144
1 parent cef7e5b commit 5e7dbae
Copy full SHA for 5e7dbae

File tree

Expand file treeCollapse file tree

1 file changed

+1
-15
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-15
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Config/AutowireServiceResource.php
+1-15Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.