改名
This commit is contained in:
@@ -90,6 +90,26 @@ class Producer extends Component
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function getService(): array
|
||||
{
|
||||
$array = [];
|
||||
foreach (array_keys($this->cods) as $key) {
|
||||
$explode = explode('.', $key);
|
||||
$prefix = array_shift($explode);
|
||||
|
||||
$explode = implode('.', $explode);
|
||||
if (!isset($array[$prefix])) {
|
||||
$array[$prefix] = [];
|
||||
}
|
||||
$array[$prefix][] = $explode;
|
||||
}
|
||||
return $array;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
* @return mixed
|
||||
|
||||
Reference in New Issue
Block a user