diff options
Diffstat (limited to 'src/classes/ContainerUtils.php')
-rw-r--r-- | src/classes/ContainerUtils.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/classes/ContainerUtils.php b/src/classes/ContainerUtils.php index 31b870c0..c86e3fc0 100644 --- a/src/classes/ContainerUtils.php +++ b/src/classes/ContainerUtils.php @@ -88,6 +88,18 @@ class ContainerUtils self::$instance = new self(); } + $display_sizes = $conf['display_sizes'] ?? false; + + $conf['display_sizes'] = [ + 'schemas' => (bool) $display_sizes, + 'tables' => (bool) $display_sizes, + ]; + if (is_array($display_sizes)) { + $conf['display_sizes'] = [ + 'schemas' => $display_sizes['schemas'] ?? in_array('schemas', $display_sizes, true), + 'tables' => $display_sizes['tables'] ?? in_array('tables', $display_sizes, true), + ]; + } return [self::$instance->container, self::$instance->app]; } |