mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 09:54:44 +02:00
Don’t ask for the author
This commit is contained in:
parent
8f4b68617a
commit
6621ece3a1
@ -61,30 +61,17 @@ class AppSettingsCommand extends Command
|
|||||||
public function handle(): int
|
public function handle(): int
|
||||||
{
|
{
|
||||||
$this->variables['APP_TIMEZONE'] = 'UTC';
|
$this->variables['APP_TIMEZONE'] = 'UTC';
|
||||||
|
|
||||||
if (empty(config('hashids.salt')) || $this->option('new-salt')) {
|
if (empty(config('hashids.salt')) || $this->option('new-salt')) {
|
||||||
$this->variables['HASHIDS_SALT'] = str_random(20);
|
$this->variables['HASHIDS_SALT'] = str_random(20);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->output->comment(__('commands.appsettings.comment.author'));
|
|
||||||
$this->variables['APP_SERVICE_AUTHOR'] = $this->option('author') ?? $this->ask(
|
|
||||||
'Egg Author Email',
|
|
||||||
config('panel.service.author', 'unknown@unknown.com')
|
|
||||||
);
|
|
||||||
|
|
||||||
if (!filter_var($this->variables['APP_SERVICE_AUTHOR'], FILTER_VALIDATE_EMAIL)) {
|
|
||||||
$this->output->error('The service author email provided is invalid.');
|
|
||||||
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->output->comment(__('commands.appsettings.comment.url'));
|
$this->output->comment(__('commands.appsettings.comment.url'));
|
||||||
$this->variables['APP_URL'] = $this->option('url') ?? $this->ask(
|
$this->variables['APP_URL'] = $this->option('url') ?? $this->ask(
|
||||||
'Application URL',
|
'Application URL',
|
||||||
config('app.url', 'https://example.com')
|
config('app.url', 'https://example.com')
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
$selected = config('cache.default', 'file');
|
$selected = config('cache.default', 'file');
|
||||||
$this->variables['CACHE_STORE'] = $this->option('cache') ?? $this->choice(
|
$this->variables['CACHE_STORE'] = $this->option('cache') ?? $this->choice(
|
||||||
'Cache Driver',
|
'Cache Driver',
|
||||||
|
@ -1,31 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Additional Compiled Classes
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
|
|
|
||||||
| Here you may specify additional classes to include in the compiled file
|
|
||||||
| generated by the `artisan optimize` command. These should be classes
|
|
||||||
| that are included on basically every request into the application.
|
|
||||||
|
|
|
||||||
*/
|
|
||||||
|
|
||||||
'files' => [
|
|
||||||
],
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Compiled File Providers
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
|
|
|
||||||
| Here you may list service providers which define a "compiles" function
|
|
||||||
| that returns additional files that should be compiled, providing an
|
|
||||||
| easy way to get common files from any packages you are utilizing.
|
|
||||||
|
|
|
||||||
*/
|
|
||||||
|
|
||||||
'providers' => [
|
|
||||||
],
|
|
||||||
];
|
|
Loading…
x
Reference in New Issue
Block a user