32 $this->routerList = array_filter(
35 return (!isset(
$item[
'disable']) || !
$item[
'disable']) &&
$item[
'class'];
38 uasort($this->routerList, [$this,
'compareRoutersSortOrder']);
49 if (!isset($this->routerList[$routerId][
'object'])) {
50 $this->routerList[$routerId][
'object'] = $this->objectManager->create(
51 $this->routerList[$routerId][
'class']
54 return $this->routerList[$routerId][
'object'];
76 next($this->routerList);
87 return key($this->routerList);
99 return !!
current($this->routerList);
110 reset($this->routerList);
122 return (
int)$routerDataFirst[
'sortOrder'] <=> (int)$routerDataSecond[
'sortOrder'];
compareRoutersSortOrder($routerDataFirst, $routerDataSecond)
__construct(\Magento\Framework\ObjectManagerInterface $objectManager, array $routerList)
getRouterInstance($routerId)