<?php

namespace apexl\Io\modules\menu\callbacks;

use apexl\Io\modules\menu\services\Menu;

/**
 * Class initialiseModules
 * Allows this module to register other module methods. E.g. Permission declarations
 * @package apexl\Io\modules\user\callbacks
 */
class initialiseModules
{
    public static function registerMenuItems($module)
    {
        if (method_exists($module, 'registerMenuItems')) {
            $module->registerMenuItems(Menu::getInstance());
        }

        return $module;
    }
}
