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."); - } - } -}