Neos\Flow\Monitor\ChangeDetectionStrategy\ModificationTimeStrategy::injectCache PHP Метод

injectCache() публичный Метод

Injects the Flow_Monitor cache
public injectCache ( StringFrontend $cache ) : void
$cache Neos\Cache\Frontend\StringFrontend
Результат void
    public function injectCache(StringFrontend $cache)
    {
        $this->cache = $cache;
    }

Usage Example

 /**
  */
 public function setUp()
 {
     vfsStream::setup('testDirectory');
     $this->cache = $this->getMockBuilder(\Neos\Cache\Frontend\StringFrontend::class)->disableOriginalConstructor()->getMock();
     $this->strategy = new \Neos\Flow\Monitor\ChangeDetectionStrategy\ModificationTimeStrategy();
     $this->strategy->injectCache($this->cache);
 }
All Usage Examples Of Neos\Flow\Monitor\ChangeDetectionStrategy\ModificationTimeStrategy::injectCache