<?php
 namespace ModStart\Admin\Config; class AdminConfig { public static function get($key = null, $default = null) { static $config = null; if (null === $config) { $config = [ 'menu' => [], ]; if (file_exists($file = modstart_admin_path('config.php'))) { $config = (require $file); } } if (null === $key) { return $config; } if (isset($config[$key])) { return $config[$key]; } return $default; } }