Skip to content

Commit

Permalink
pkp#7105 Applying some changes on bad rebased stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
henriqueramos committed Feb 17, 2022
1 parent 60b3bbe commit b2cbe95
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 36 deletions.
6 changes: 3 additions & 3 deletions Jobs/Submissions/UpdateSubmissionSearchJob.php
Expand Up @@ -3,13 +3,13 @@
declare(strict_types=1);

/**
* @file Jobs/Submissions/UpdateSubmissionOnSearchIndexJob.php
* @file Jobs/Submissions/UpdateSubmissionSearchJob.php
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2000-2021 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* @class UpdateSubmissionOnSearchIndexJob
* @class UpdateSubmissionSearchJob
* @ingroup jobs
*
* @brief Class to handle the Submission Search data update as a Job
Expand All @@ -24,7 +24,7 @@
use PKP\submission\PKPSubmission;
use PKP\Support\Jobs\BaseJob;

class UpdateSubmissionOnSearchIndexJob extends BaseJob
class UpdateSubmissionSearchJob extends BaseJob
{
/**
* @var int The submission ID
Expand Down
2 changes: 0 additions & 2 deletions classes/core/PKPContainer.inc.php
Expand Up @@ -22,7 +22,6 @@

use Illuminate\Container\Container;
use Illuminate\Contracts\Console\Kernel as KernelContract;
use Illuminate\Contracts\Container\Container as ContainerContract;
use Illuminate\Contracts\Debug\ExceptionHandler;
use Illuminate\Foundation\Console\Kernel;
use Illuminate\Log\LogServiceProvider;
Expand Down Expand Up @@ -66,7 +65,6 @@ protected function registerBaseBindings()
$this->instance('app', $this);
$this->instance(Container::class, $this);
$this->instance('path', $this->basePath);
$this->instance(ContainerContract::class, $this);
$this->singleton(ExceptionHandler::class, function () {
return new class() implements ExceptionHandler {
public function shouldReport(Throwable $e)
Expand Down
18 changes: 1 addition & 17 deletions classes/core/PKPEventServiceProvider.inc.php
Expand Up @@ -31,23 +31,7 @@ class PKPEventServiceProvider extends EventServiceProvider
* @var array $listen $event => $listeners[]
* @brief Registering events & listeners, see Illuminate\Events\EventServiceProvider
*/
protected $listen = [
SubmissionDeleted::class => [
SubmissionDeletedListener::class,
],
SubmissionFileDeleted::class => [
SubmissionFileDeletedListener::class,
],
MetadataChanged::class => [
MetadataChangedListener::class
],
PublishedEvent::class => [
SubmissionUpdatedListener::class,
],
UnpublishedEvent::class => [
SubmissionUpdatedListener::class,
]
];
protected $listen = [];

/**
* @var array
Expand Down
13 changes: 1 addition & 12 deletions classes/core/PKPQueueProvider.inc.php
Expand Up @@ -24,7 +24,7 @@

class PKPQueueProvider
{
public function runQueuedJobs(): void
public function runJobsAtShutdown(): void
{
$disableRun = Config::getVar('queues', 'disable_jobs_run_at_shutdown', false);

Expand Down Expand Up @@ -62,17 +62,6 @@ public function runQueuedJobs(): void
);
}

public function runJobsAtShutdown(): void
{
$shouldRun = Config::getVar('queues', 'run_jobs_at_shutdown', false);

if (!$shouldRun) {
return;
}

$this->runQueuedJobs();
}

public function register()
{
register_shutdown_function([$this, 'runJobsAtShutdown']);
Expand Down
3 changes: 1 addition & 2 deletions composer.json
Expand Up @@ -25,8 +25,7 @@
"staudenmeir/laravel-upsert": "^1.3",
"cweagans/composer-patches": "^1.7",
"kevinlebrun/colors.php": "^1.0",
"symfony/mailer": "^5.4",
"nesbot/carbon": "~2"
"symfony/mailer": "^5.4"
},
"require-dev": {
"phpunit/phpunit": "~9",
Expand Down

0 comments on commit b2cbe95

Please sign in to comment.