Skip to content

Commit

Permalink
pkp#4622 Doing C.R requested changes and improving naming convention …
Browse files Browse the repository at this point in the history
…at some files
  • Loading branch information
henriqueramos committed Feb 17, 2022
1 parent 314d253 commit 1fe6a66
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 112 deletions.
6 changes: 3 additions & 3 deletions Jobs/Submissions/UpdateSubmissionSearchJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
declare(strict_types=1);

/**
* @file Jobs/Submissions/UpdateSubmissionSearchJob.php
* @file Jobs/Submissions/UpdateSubmissionOnSearchIndexJob.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 UpdateSubmissionSearchJob
* @class UpdateSubmissionOnSearchIndexJob
* @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 UpdateSubmissionSearchJob extends BaseJob
class UpdateSubmissionOnSearchIndexJob extends BaseJob
{
/**
* @var int The submission ID
Expand Down
12 changes: 6 additions & 6 deletions classes/core/PKPEventServiceProvider.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,20 @@ class PKPEventServiceProvider extends EventServiceProvider
* @brief Registering events & listeners, see Illuminate\Events\EventServiceProvider
*/
protected $listen = [
DeletedSubmission::class => [
DeletedSubmissionListener::class,
SubmissionDeleted::class => [
SubmissionDeletedListener::class,
],
DeleteSubmissionFile::class => [
DeleteSubmissionFileListener::class,
SubmissionFileDeleted::class => [
SubmissionFileDeletedListener::class,
],
MetadataChanged::class => [
MetadataChangedListener::class
],
PublishedEvent::class => [
UpdateSubmissionSearchListener::class,
SubmissionUpdatedListener::class,
],
UnpublishedEvent::class => [
UpdateSubmissionSearchListener::class,
SubmissionUpdatedListener::class,
]
];

Expand Down
34 changes: 0 additions & 34 deletions classes/observers/listeners/DeleteSubmissionFileListener.inc.php

This file was deleted.

34 changes: 0 additions & 34 deletions classes/observers/listeners/DeletedSubmissionListener.inc.php

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

use Illuminate\Events\Dispatcher;
use PKP\Jobs\Submissions\RemoveSubmissionFromSearchIndexJob;

use PKP\observers\events\SubmissionDeleted;

class SubmissionDeletedListener
Expand Down
34 changes: 0 additions & 34 deletions classes/observers/listeners/UpdateSubmissionSearchListener.inc.php

This file was deleted.

0 comments on commit 1fe6a66

Please sign in to comment.