File tree 1 file changed +1
-15
lines changed
src/Symfony/Component/DependencyInjection/Config
1 file changed +1
-15
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 ;
16
15
17
16
class AutowireServiceResource implements SelfCheckingResourceInterface, \Serializable
18
17
{
@@ -33,20 +32,7 @@ public function isFresh($timestamp)
33
32
return false ;
34
33
}
35
34
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 ;
50
36
}
51
37
52
38
public function __toString ()
You can’t perform that action at this time.
0 commit comments