Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CA Admin and Commands: Use different colors on library install/update button/version #2970

Merged
merged 3 commits into from
Feb 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Str;
use Symfony\Component\Console\Command\Command as SymfonyCommand;

class H5PLibraryInstall extends Command
{
Expand Down Expand Up @@ -39,16 +40,16 @@ public function handle(): int
$this->warn("Use of h5p.org hub is not enabled. To enable set 'H5P_IS_HUB_ENABLED=true'");
$this->newLine();

return Command::FAILURE;
return SymfonyCommand::FAILURE;
}

$cacheUpdate = $this->call('h5p:library-hub-cache', ['--force' => $this->option('force-cache')]);

if ($cacheUpdate !== Command::SUCCESS) {
if ($cacheUpdate !== SymfonyCommand::SUCCESS) {
return $cacheUpdate;
}

return $this->install() ? Command::SUCCESS : Command::FAILURE;
return $this->install() ? SymfonyCommand::SUCCESS : SymfonyCommand::FAILURE;
}

/**
Expand Down Expand Up @@ -82,7 +83,12 @@ private function install(): bool
$success = false;
$this->error('Failed');
if (isset($result['message'])) {
$this->error(' ' . $result['message']);
$this->error("\t" . $result['message']);
}
if (isset($result['details'])) {
foreach ($result['details'] as $detail) {
$this->error("\t" . $detail);
}
}
}
}
Expand Down
254 changes: 0 additions & 254 deletions sourcecode/apis/contentauthor/app/Console/Commands/H5PLibraryList.php

This file was deleted.

Loading