This commit is contained in:
Yuri Kuznetsov
2021-04-18 20:07:12 +03:00
parent dc389e0f41
commit 491a28c03e
6 changed files with 96 additions and 47 deletions
+6 -3
View File
@@ -63,8 +63,11 @@ class Module
private $fileManager;
private $dataCache;
public function __construct(FileManager $fileManager, ?DataCache $dataCache = null, bool $useCache = false)
{
public function __construct(
FileManager $fileManager,
?DataCache $dataCache = null,
bool $useCache = false
) {
$this->fileManager = $fileManager;
$this->dataCache = $dataCache;
@@ -115,7 +118,7 @@ class Module
/**
* Get an ordered list of modules.
*/
public function getOrderedList() : array
public function getOrderedList(): array
{
$modules = $this->fileManager->getFileList($this->pathToModules, false, '', false);