Skip to content

Commit

Permalink
Allow to set and view missing setting options in the CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
Usbac committed Sep 25, 2024
1 parent 86bbb95 commit 5970394
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
14 changes: 11 additions & 3 deletions bin/settings/Listing.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,25 @@ protected function execute(InputInterface $input, OutputInterface $output)
[ 'Blog url', $settings['blog_url'] ],
[ 'Date format', $settings['date_format'] ],
[ 'Description', $settings['description'] ],
[ 'Editor code', $settings['editor_code'] ],
[ 'Error log filename', $settings['log_file'] ],
[ 'Footer code', $settings['footer_code'] ],
[ 'Header code', $settings['header_code'] ],
[ 'Items per page', $settings['per_page'] ],
[ 'Language', $settings['language'] ],
[ 'Logo', $settings['logo'] ],
[ 'Log errors', $settings['log_errors'] ? 'yes' : 'no' ],
[ 'Maintenance', $settings['maintenance'] ? 'yes' : 'no' ],
[ 'Meta description', $settings['meta_description'] ],
[ 'Meta keywords', $settings['meta_keywords'] ],
[ 'Items per page', $settings['per_page']],
[ 'Meta title', $settings['meta_title'] ],
[ 'Post code', $settings['post_code'] ],
[ 'SameSite cookie', $settings['samesite_cookie'] ],
[ 'Session lifetime', $settings['session_lifetime'] ],
[ 'Theme', $settings['theme'] ],
[ 'Title', $settings['title'] ],
[ 'Views count', $settings['views_count'] ? 'yes' : 'no' ],
])
->render();
])->render();

return Command::SUCCESS;
}
Expand Down
11 changes: 10 additions & 1 deletion bin/settings/Set.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,21 @@ protected function execute(InputInterface $input, OutputInterface $output)
'Blog url' => 'blog_url',
'Date format' => 'date_format',
'Description' => 'description',
'Editor code' => 'editor_code',
'Error log filename' => 'log_file',
'Footer code' => 'footer_code',
'Header code' => 'header_code',
'Items per page' => 'per_page',
'Language' => 'language',
'Logo' => 'logo',
'Log errors' => 'log_errors',
'Maintenance' => 'maintenance',
'Meta description' => 'meta_description',
'Meta keywords' => 'meta_keywords',
'Items per page' => 'per_page',
'Meta title' => 'meta_title',
'Post code' => 'post_code',
'SameSite cookie' => 'samesite_cookie',
'Session lifetime' => 'session_lifetime',
'Theme' => 'theme',
'Title' => 'title',
'Views count' => 'views_count',
Expand Down

0 comments on commit 5970394

Please sign in to comment.