From 1e5acbf648ad8d2d89c78acc084139db88f17aed Mon Sep 17 00:00:00 2001 From: Awilum Date: Sat, 2 Feb 2019 02:42:21 +0300 Subject: [PATCH] Admin Panel: Menus Manager - removed for now. We will try to have fields for menus inside menu sections. --- flextype/Menus.php | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 flextype/Menus.php diff --git a/flextype/Menus.php b/flextype/Menus.php deleted file mode 100644 index da161b8d..00000000 --- a/flextype/Menus.php +++ /dev/null @@ -1,38 +0,0 @@ - - * @link http://flextype.org - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Flextype; - -use Flextype\Component\Filesystem\Filesystem; - -class Menus -{ - /** - * Get menu - * - * Menu::get('menu-name'); - * - * @access public - * @param string $menu_name Menu name - * @return array - */ - public static function get(string $menu_name) - { - $menu_path = PATH['menus'] . '/' . $menu_name . '.yaml'; - - if (Filesystem::has($menu_path)) { - return YamlParser::decode(Filesystem::read($menu_path)); - } else { - throw new \RuntimeException("Menu {$menu_name} does not exist."); - } - } -}