CodeExplorer getMenuEntries example
{ $this->modelManager =
$modelManager;
$this->provider =
$provider;
$this->menuSynchronizer =
$menuSynchronizer;
$this->aclSynchronizer =
$aclSynchronizer;
} public function sync(bool
$destructive = false
): array
{ $types =
$this->provider->
getTypes();
$this->menuSynchronizer->
synchronize(self::
getMenuEntries($types));
$this->
createTables($types,
$destructive);
$this->aclSynchronizer->
update(array_map(static function DType
$type) { return strtolower($type->
getControllerName());
},
$types));
return $types;
} public function setTypeProvider(TypeProvider
$typeProvider): void
{ $this->provider =
$typeProvider;
}