modify
This commit is contained in:
@@ -27,9 +27,6 @@ class Loader extends BaseObject
|
||||
private array $_classes = [];
|
||||
|
||||
|
||||
private array $_fileMap = [];
|
||||
|
||||
|
||||
private array $_directory = [];
|
||||
|
||||
|
||||
@@ -178,8 +175,6 @@ class Loader extends BaseObject
|
||||
$_array = $this->_methods($replace, $_array);
|
||||
$_array = $this->_properties($replace, $_array);
|
||||
|
||||
$this->_fileMap[$replace->getFileName()] = $replace->getName();
|
||||
|
||||
$this->_classes[$replace->getName()] = $_array;
|
||||
} catch (Throwable $throwable) {
|
||||
$this->addError($throwable, 'throwable');
|
||||
@@ -320,19 +315,6 @@ class Loader extends BaseObject
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param string $filename
|
||||
* @return mixed
|
||||
*/
|
||||
public function getClassByFilepath(string $filename): mixed
|
||||
{
|
||||
if (!isset($this->_fileMap[$filename])) {
|
||||
return null;
|
||||
}
|
||||
return $this->_classes[$this->_fileMap[$filename]];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param array $classes
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user