'success' => true,
'data' =>
$this->
prepareConfigData(),
]);
} /**
* Gets a list of id-name of all active shops
*/
public function getActiveShopsAction() { $shopRepo =
$this->container->
get(ModelManager::
class)->
getRepository(Shop::
class);
$shops =
$shopRepo->
getActiveShops(AbstractQuery::HYDRATE_ARRAY
);
$this->
View()->
assign([ 'success' => true,
'data' =>
array_map(function D
$item) { return ['id' =>
$item['id'
], 'name' =>
$item['name'
]];
},
$shops),
]);
} /**
* This action creates/updates the configuration
*/