Skip to content

Commit

Permalink
pkp#7725 revert back decsion APP path and bringing back global constants
Browse files Browse the repository at this point in the history
  • Loading branch information
touhidurabir committed Aug 30, 2022
1 parent ac2107c commit 3a5eb97
Show file tree
Hide file tree
Showing 55 changed files with 67 additions and 55 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

namespace PKP\components\forms\decision;

use PKP\decision\Decision;
use APP\decision\Decision;
use PKP\components\forms\FieldOptions;
use PKP\components\forms\FormComponent;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

namespace PKP\components\forms\decision;

use PKP\decision\Decision;
use APP\decision\Decision;
use PKP\components\forms\FieldOptions;
use PKP\components\forms\FormComponent;

Expand Down
2 changes: 1 addition & 1 deletion classes/decision/DAO.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace PKP\decision;

use PKP\decision\Decision;
use APP\decision\Decision;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\DB;
Expand Down
12 changes: 12 additions & 0 deletions classes/decision/Decision.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,15 @@ public function getDecisionType(): DecisionType
return $decisionType;
}
}

if (!PKP_STRICT_MODE) {
// Some constants are not redefined here because they never existed as global constants
define('SUBMISSION_EDITOR_DECISION_INITIAL_DECLINE', Decision::INITIAL_DECLINE);
define('SUBMISSION_EDITOR_RECOMMEND_ACCEPT', Decision::RECOMMEND_ACCEPT);
define('SUBMISSION_EDITOR_RECOMMEND_PENDING_REVISIONS', Decision::RECOMMEND_PENDING_REVISIONS);
define('SUBMISSION_EDITOR_RECOMMEND_RESUBMIT', Decision::RECOMMEND_RESUBMIT);
define('SUBMISSION_EDITOR_RECOMMEND_DECLINE', Decision::RECOMMEND_DECLINE);
define('SUBMISSION_EDITOR_DECISION_REVERT_DECLINE', Decision::REVERT_DECLINE);
define('SUBMISSION_EDITOR_DECISION_SEND_TO_PRODUCTION', Decision::SEND_TO_PRODUCTION);
define('SUBMISSION_EDITOR_DECISION_NEW_ROUND', Decision::NEW_EXTERNAL_ROUND);
}
2 changes: 1 addition & 1 deletion classes/decision/DecisionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

use APP\core\Application;
use APP\core\Request;
use PKP\decision\Decision;
use APP\decision\Decision;
use APP\facades\Repo;
use APP\notification\Notification;
use APP\notification\NotificationManager;
Expand Down
2 changes: 1 addition & 1 deletion classes/decision/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use APP\core\Application;
use APP\core\Request;
use APP\core\Services;
use PKP\decision\Decision;
use APP\decision\Decision;
use APP\facades\Repo;
use APP\notification\Notification;
use APP\notification\NotificationManager;
Expand Down
2 changes: 1 addition & 1 deletion classes/decision/maps/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace PKP\decision\maps;

use PKP\decision\Decision;
use APP\decision\Decision;
use Illuminate\Support\Enumerable;
use PKP\services\PKPSchemaService;

Expand Down
2 changes: 1 addition & 1 deletion classes/decision/types/Accept.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace PKP\decision\types;

use PKP\decision\Decision;
use APP\decision\Decision;
use APP\facades\Repo;
use APP\submission\Submission;
use Illuminate\Validation\Validator;
Expand Down
2 changes: 1 addition & 1 deletion classes/decision/types/BackFromCopyediting.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

namespace PKP\decision\types;

use PKP\decision\Decision;
use APP\decision\Decision;
use APP\submission\Submission;
use Illuminate\Validation\Validator;
use PKP\components\fileAttachers\FileStage;
Expand Down
2 changes: 1 addition & 1 deletion classes/decision/types/BackFromProduction.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace PKP\decision\types;

use PKP\decision\Decision;
use APP\decision\Decision;
use APP\submission\Submission;
use Illuminate\Validation\Validator;
use PKP\components\fileAttachers\FileStage;
Expand Down
2 changes: 1 addition & 1 deletion classes/decision/types/CancelReviewRound.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

namespace PKP\decision\types;

use PKP\decision\Decision;
use APP\decision\Decision;
use APP\submission\Submission;
use Illuminate\Validation\Validator;
use PKP\context\Context;
Expand Down
2 changes: 1 addition & 1 deletion classes/decision/types/Decline.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace PKP\decision\types;

use PKP\decision\Decision;
use APP\decision\Decision;
use APP\submission\Submission;
use Illuminate\Validation\Validator;
use PKP\context\Context;
Expand Down
2 changes: 1 addition & 1 deletion classes/decision/types/InitialDecline.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace PKP\decision\types;

use PKP\decision\Decision;
use APP\decision\Decision;
use APP\submission\Submission;
use Illuminate\Validation\Validator;
use PKP\context\Context;
Expand Down
2 changes: 1 addition & 1 deletion classes/decision/types/NewExternalReviewRound.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace PKP\decision\types;

use PKP\decision\Decision;
use APP\decision\Decision;
use APP\facades\Repo;
use APP\submission\Submission;
use Illuminate\Validation\Validator;
Expand Down
2 changes: 1 addition & 1 deletion classes/decision/types/RecommendAccept.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace PKP\decision\types;

use PKP\decision\Decision;
use APP\decision\Decision;
use APP\submission\Submission;
use PKP\decision\DecisionType;
use PKP\decision\types\traits\InExternalReviewRound;
Expand Down
2 changes: 1 addition & 1 deletion classes/decision/types/RecommendDecline.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace PKP\decision\types;

use PKP\decision\Decision;
use APP\decision\Decision;
use APP\submission\Submission;
use PKP\decision\DecisionType;
use PKP\decision\types\traits\InExternalReviewRound;
Expand Down
2 changes: 1 addition & 1 deletion classes/decision/types/RecommendResubmit.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace PKP\decision\types;

use PKP\decision\Decision;
use APP\decision\Decision;
use APP\submission\Submission;
use PKP\decision\DecisionType;
use PKP\decision\types\traits\InExternalReviewRound;
Expand Down
2 changes: 1 addition & 1 deletion classes/decision/types/RecommendRevisions.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace PKP\decision\types;

use PKP\decision\Decision;
use APP\decision\Decision;
use APP\submission\Submission;
use PKP\decision\DecisionType;
use PKP\decision\types\traits\InExternalReviewRound;
Expand Down
2 changes: 1 addition & 1 deletion classes/decision/types/RequestRevisions.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace PKP\decision\types;

use PKP\decision\Decision;
use APP\decision\Decision;
use APP\submission\Submission;
use Illuminate\Validation\Validator;
use PKP\context\Context;
Expand Down
2 changes: 1 addition & 1 deletion classes/decision/types/Resubmit.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace PKP\decision\types;

use PKP\decision\Decision;
use APP\decision\Decision;
use APP\submission\Submission;
use Illuminate\Validation\Validator;
use PKP\context\Context;
Expand Down
2 changes: 1 addition & 1 deletion classes/decision/types/RevertDecline.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace PKP\decision\types;

use PKP\decision\Decision;
use APP\decision\Decision;
use APP\submission\Submission;
use Illuminate\Validation\Validator;
use PKP\context\Context;
Expand Down
2 changes: 1 addition & 1 deletion classes/decision/types/RevertInitialDecline.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace PKP\decision\types;

use PKP\decision\Decision;
use APP\decision\Decision;
use APP\submission\Submission;
use Illuminate\Validation\Validator;
use PKP\context\Context;
Expand Down
2 changes: 1 addition & 1 deletion classes/decision/types/SendExternalReview.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace PKP\decision\types;

use PKP\decision\Decision;
use APP\decision\Decision;
use APP\facades\Repo;
use APP\submission\Submission;
use Illuminate\Validation\Validator;
Expand Down
2 changes: 1 addition & 1 deletion classes/decision/types/SendToProduction.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace PKP\decision\types;

use PKP\decision\Decision;
use APP\decision\Decision;
use APP\facades\Repo;
use APP\submission\Submission;
use Illuminate\Validation\Validator;
Expand Down
2 changes: 1 addition & 1 deletion classes/decision/types/SkipExternalReview.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace PKP\decision\types;

use PKP\decision\Decision;
use APP\decision\Decision;
use APP\facades\Repo;
use APP\submission\Submission;
use Illuminate\Validation\Validator;
Expand Down
2 changes: 1 addition & 1 deletion classes/decision/types/traits/IsRecommendation.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

use APP\core\Application;
use APP\core\Services;
use PKP\decision\Decision;
use APP\decision\Decision;
use APP\facades\Repo;
use APP\submission\Submission;
use Exception;
Expand Down
2 changes: 1 addition & 1 deletion classes/mail/Mailable.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
namespace PKP\mail;

use APP\core\Services;
use PKP\decision\Decision;
use APP\decision\Decision;
use APP\facades\Repo;
use APP\mail\variables\ContextEmailVariable;
use BadMethodCallException;
Expand Down
2 changes: 1 addition & 1 deletion classes/mail/mailables/DecisionAcceptNotifyAuthor.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

namespace PKP\mail\mailables;

use PKP\decision\Decision;
use APP\decision\Decision;
use APP\submission\Submission;
use PKP\context\Context;
use PKP\mail\Mailable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

namespace PKP\mail\mailables;

use PKP\decision\Decision;
use APP\decision\Decision;
use APP\submission\Submission;
use PKP\context\Context;
use PKP\mail\Mailable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

namespace PKP\mail\mailables;

use PKP\decision\Decision;
use APP\decision\Decision;
use APP\submission\Submission;
use PKP\context\Context;
use PKP\mail\Mailable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

namespace PKP\mail\mailables;

use PKP\decision\Decision;
use APP\decision\Decision;
use APP\submission\Submission;
use PKP\context\Context;
use PKP\mail\Mailable;
Expand Down
2 changes: 1 addition & 1 deletion classes/mail/mailables/DecisionDeclineNotifyAuthor.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

namespace PKP\mail\mailables;

use PKP\decision\Decision;
use APP\decision\Decision;
use APP\submission\Submission;
use PKP\context\Context;
use PKP\mail\Mailable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

namespace PKP\mail\mailables;

use PKP\decision\Decision;
use APP\decision\Decision;
use APP\submission\Submission;
use PKP\context\Context;
use PKP\mail\Mailable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

namespace PKP\mail\mailables;

use PKP\decision\Decision;
use APP\decision\Decision;
use APP\submission\Submission;
use PKP\context\Context;
use PKP\mail\Mailable;
Expand Down
2 changes: 1 addition & 1 deletion classes/mail/mailables/DecisionNotifyReviewer.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

namespace PKP\mail\mailables;

use PKP\decision\Decision;
use APP\decision\Decision;
use APP\submission\Submission;
use PKP\context\Context;
use PKP\mail\Mailable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

namespace PKP\mail\mailables;

use PKP\decision\Decision;
use APP\decision\Decision;
use APP\submission\Submission;
use PKP\context\Context;
use PKP\mail\Mailable;
Expand Down
2 changes: 1 addition & 1 deletion classes/mail/mailables/DecisionResubmitNotifyAuthor.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

namespace PKP\mail\mailables;

use PKP\decision\Decision;
use APP\decision\Decision;
use APP\submission\Submission;
use PKP\context\Context;
use PKP\mail\Mailable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

namespace PKP\mail\mailables;

use PKP\decision\Decision;
use APP\decision\Decision;
use APP\submission\Submission;
use PKP\context\Context;
use PKP\mail\Mailable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

namespace PKP\mail\mailables;

use PKP\decision\Decision;
use APP\decision\Decision;
use APP\submission\Submission;
use PKP\context\Context;
use PKP\mail\Mailable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

namespace PKP\mail\mailables;

use PKP\decision\Decision;
use APP\decision\Decision;
use APP\submission\Submission;
use PKP\context\Context;
use PKP\mail\Mailable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

namespace PKP\mail\mailables;

use PKP\decision\Decision;
use APP\decision\Decision;
use APP\submission\Submission;
use PKP\context\Context;
use PKP\mail\Mailable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

namespace PKP\mail\mailables;

use PKP\decision\Decision;
use APP\decision\Decision;
use APP\submission\Submission;
use PKP\context\Context;
use PKP\mail\Mailable;
Expand Down
2 changes: 1 addition & 1 deletion classes/mail/mailables/RecommendationNotifyEditors.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

namespace PKP\mail\mailables;

use PKP\decision\Decision;
use APP\decision\Decision;
use APP\facades\Repo;
use APP\submission\Submission;
use Exception;
Expand Down
Loading

0 comments on commit 3a5eb97

Please sign in to comment.