<?php
/**
 * Loader file for Site Menu plugin
 *
 * @category Plugins
 * @package  Mtc_Plugins
 * @author   mtc. Martins Fridenbergs <martins.fridenbergs@mtcmedia.co.uk>
 */

namespace Mtc\Plugins\SiteMenu;
use Mtc\Plugins\SiteMenu\Classes\SiteMenuRender;

if(empty($menu)) {
    $menu = [];
}

//$twig = app('twig');
// Add hooks
\HooksAdapter::add_action(
    'load_site_menu',
   SiteMenuRender::class . '::renderMenu',
    10,              // Priority - 10 is default
    1,               // Accepted args from hook
    [$twig] // forced args passed to hook
);
