public function flushSystemCachesByChangedFilesTriggersAopProxyClassRebuildIfNeeded($changedFile, $needsAopProxyClassRebuild)
{
$this->registerCache('Flow_Security_Authorization_Privilege_Method');
$this->registerCache('Flow_Mvc_Routing_Route');
$this->registerCache('Flow_Mvc_ViewConfigurations');
$this->registerCache('Flow_Persistence_Doctrine');
$this->registerCache('Flow_Persistence_Doctrine_Results');
$this->registerCache('Flow_Mvc_Routing_Resolve');
$this->registerCache('Flow_Aop_RuntimeExpressions');
$objectClassesCache = $this->registerCache('Flow_Object_Classes');
$objectConfigurationCache = $this->registerCache('Flow_Object_Configuration');
if ($needsAopProxyClassRebuild) {
$objectClassesCache->expects($this->once())->method('flush');
$objectConfigurationCache->expects($this->at(0))->method('remove')->with('allAspectClassesUpToDate');
$objectConfigurationCache->expects($this->at(1))->method('remove')->with('allCompiledCodeUpToDate');
} else {
$objectClassesCache->expects($this->never())->method('flush');
$objectConfigurationCache->expects($this->never())->method('remove')->with('allAspectClassesUpToDate');
$objectConfigurationCache->expects($this->never())->method('remove')->with('allCompiledCodeUpToDate');
}
$this->cacheManager->flushSystemCachesByChangedFiles('Flow_ConfigurationFiles', [$changedFile => ChangeDetectionStrategyInterface::STATUS_CHANGED]);
}