File tree 1 file changed +2
-14
lines changed
src/Symfony/Component/DependencyInjection/Config
1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \DependencyInjection \Config ;
13
13
14
14
use Symfony \Component \Config \Resource \SelfCheckingResourceInterface ;
15
+ use Symfony \Component \DependencyInjection \Compiler \AutowirePass ;
15
16
16
17
class AutowireServiceResource implements SelfCheckingResourceInterface, \Serializable
17
18
{
@@ -32,20 +33,7 @@ public function isFresh($timestamp)
32
33
return false ;
33
34
}
34
35
35
- // has the file *not* been modified? Definitely fresh
36
- if (@filemtime ($ this ->filePath ) <= $ timestamp ) {
37
- return true ;
38
- }
39
-
40
- try {
41
- $ reflectionClass = new \ReflectionClass ($ this ->class );
42
- } catch (\ReflectionException $ e ) {
43
- // the class does not exist anymore!
44
-
45
- return false ;
46
- }
47
-
48
- return false ;
36
+ return @filemtime ($ this ->filePath ) <= $ timestamp ;
49
37
}
50
38
51
39
public function __toString ()
You can’t perform that action at this time.
0 commit comments