SystemListReset.php in X Autoload 7.5
File
tests/src/VirtualDrupal/SystemListReset.php
View source
<?php
namespace Drupal\xautoload\Tests\VirtualDrupal;
class SystemListReset {
private $drupalStatic;
private $cache;
function __construct(Cache $cache, DrupalStatic $drupalStatic) {
$this->cache = $cache;
$this->drupalStatic = $drupalStatic;
}
function systemListReset() {
$this->drupalStatic
->resetKey('system_list');
$this->drupalStatic
->resetKey('system_rebuild_module_data');
$this->drupalStatic
->resetKey('list_themes');
$this->cache
->cacheClearAll('bootstrap_modules', 'cache_bootstrap');
$this->cache
->cacheClearAll('system_list', 'cache_bootstrap');
}
}