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
This commit is contained in:
commit
a9dcce1f51
@ -12,7 +12,6 @@
|
||||
namespace Symfony\Component\DependencyInjection\Config;
|
||||
|
||||
use Symfony\Component\Config\Resource\SelfCheckingResourceInterface;
|
||||
use Symfony\Component\DependencyInjection\Compiler\AutowirePass;
|
||||
|
||||
class AutowireServiceResource implements SelfCheckingResourceInterface, \Serializable
|
||||
{
|
||||
@ -33,20 +32,7 @@ class AutowireServiceResource implements SelfCheckingResourceInterface, \Seriali
|
||||
return false;
|
||||
}
|
||||
|
||||
// has the file *not* been modified? Definitely fresh
|
||||
if (@filemtime($this->filePath) <= $timestamp) {
|
||||
return true;
|
||||
}
|
||||
|
||||
try {
|
||||
$reflectionClass = new \ReflectionClass($this->class);
|
||||
} catch (\ReflectionException $e) {
|
||||
// the class does not exist anymore!
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
return AutowirePass::createResourceForClass($reflectionClass);
|
||||
return @filemtime($this->filePath) <= $timestamp;
|
||||
}
|
||||
|
||||
public function __toString()
|
||||
|
Reference in New Issue
Block a user