Skip to content

Commit 575fa62

Browse files
authored
Unify location of commands (#6486)
* Move commands added in 6.2 to `lib/command` See #6421 * --Duplicate ConfigureBoxes.class.php history into ../../../../command/acp/dashboard/ConfigureBoxes.class.php * --Restore ConfigureBoxes.class.php * Move `ConfigureBoxes` command * --Duplicate CreateBoxCondition.class.php history into ../../../command/box/CreateBoxCondition.class.php * --Restore CreateBoxCondition.class.php * Move `CreateBoxCondition` command * --Duplicate CreateBoxToPageAssignments.class.php history into ../../../command/box/CreateBoxToPageAssignments.class.php * --Restore CreateBoxToPageAssignments.class.php * Move `CreateBoxToPageAssignments` command * --Duplicate ClearCache.class.php history into ../../../command/cache/ClearCache.class.php * --Restore ClearCache.class.php * Move `ClearCache` command * --Duplicate CreateComment.class.php history into ../../../command/comment/CreateComment.class.php * --Restore CreateComment.class.php * Move `CreateComment` command * --Duplicate PublishComment.class.php history into ../../../command/comment/PublishComment.class.php * --Restore PublishComment.class.php * Move `PublishComment` command * --Duplicate DeleteComments.class.php history into ../../../command/comment/DeleteComments.class.php * --Restore DeleteComments.class.php * Move `DeleteComments` command * --Duplicate UpdateComment.class.php history into ../../../command/comment/UpdateComment.class.php * --Restore UpdateComment.class.php * Move `UpdateComment` command * --Duplicate PublishResponse.class.php history into ../../../../command/comment/response/PublishResponse.class.php * --Restore PublishResponse.class.php * Move `PublishResponse` command * --Duplicate CreateResponse.class.php history into ../../../../command/comment/response/CreateResponse.class.php * --Restore CreateResponse.class.php * Move `CreateResponse` command * --Duplicate DeleteResponses.class.php history into ../../../../command/comment/response/DeleteResponses.class.php * --Restore DeleteResponses.class.php * Move `DeleteResponses` command * --Duplicate UpdateResponse.class.php history into ../../../../command/comment/response/UpdateResponse.class.php * --Restore UpdateResponse.class.php * Move `UpdateResponse` command * --Duplicate ReplaceFileSource.class.php history into ../../../command/file/ReplaceFileSource.class.php * --Restore ReplaceFileSource.class.php * --Duplicate CachePreloadPhrases.class.php history into ../../../../command/language/preload/CachePreloadPhrases.class.php * --Restore CachePreloadPhrases.class.php * Move `ReplaceFileSource` command * Move `CachePreloadPhrases` command * --Duplicate ResetPreloadCache.class.php history into ../../../../command/language/preload/ResetPreloadCache.class.php * --Restore ResetPreloadCache.class.php * Move `ResetPreloadCache` command * --Duplicate AssignUser.class.php history into ../../../../command/moderation/queue/AssignUser.class.php * --Restore AssignUser.class.php * Move `AssignUser` command * --Duplicate RebuildBootstrapper.class.php history into ../../../command/package/RebuildBootstrapper.class.php * --Restore RebuildBootstrapper.class.php * Move `RebuildBootstrapper` command * --Duplicate AddDarkMode.class.php history into ../../../command/style/AddDarkMode.class.php * --Restore AddDarkMode.class.php * Move `AddDarkMode` command * --Duplicate CreateManifest.class.php history into ../../../command/style/CreateManifest.class.php * --Restore CreateManifest.class.php * Move `CreateManifest` command * --Duplicate CreateRegistrationNotification.class.php history into ../../../command/user/CreateRegistrationNotification.class.php * --Restore CreateRegistrationNotification.class.php * Move `CreateRegistrationNotification` command * --Duplicate Follow.class.php history into ../../../command/user/Follow.class.php * --Restore Follow.class.php * Move `Follow` command * --Duplicate SetColorScheme.class.php history into ../../../command/user/SetColorScheme.class.php * --Restore SetColorScheme.class.php * Move `SetColorScheme` command * --Duplicate Unfollow.class.php history into ../../../command/user/Unfollow.class.php * --Restore Unfollow.class.php * Move `Unfollow` command * Move `CopyUserGroup` command
1 parent 164ddc6 commit 575fa62

File tree

100 files changed

+2063
-1418
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+2063
-1418
lines changed

wcfsetup/install/files/lib/acp/action/CacheClearAction.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Psr\Http\Message\ResponseInterface;
88
use Psr\Http\Message\ServerRequestInterface;
99
use Psr\Http\Server\RequestHandlerInterface;
10-
use wcf\system\cache\command\ClearCache;
10+
use wcf\command\cache\ClearCache;
1111
use wcf\system\exception\PermissionDeniedException;
1212
use wcf\system\WCF;
1313

wcfsetup/install/files/lib/acp/action/DashboardConfigureAction.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Psr\Http\Message\ServerRequestInterface;
88
use Psr\Http\Server\RequestHandlerInterface;
99
use wcf\system\acp\dashboard\AcpDashboard;
10-
use wcf\system\acp\dashboard\command\ConfigureBoxes;
10+
use wcf\command\acp\dashboard\ConfigureBoxes;
1111
use wcf\system\exception\PermissionDeniedException;
1212
use wcf\system\form\builder\field\MultipleSelectionFormField;
1313
use wcf\system\form\builder\Psr15DialogForm;

wcfsetup/install/files/lib/acp/action/StyleAddDarkModeAction.class.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
use wcf\http\Helper;
1212
use wcf\system\exception\IllegalLinkException;
1313
use wcf\system\exception\PermissionDeniedException;
14-
use wcf\system\style\command\AddDarkMode;
1514
use wcf\system\WCF;
1615

1716
/**
@@ -51,7 +50,7 @@ public function handle(ServerRequestInterface $request): ResponseInterface
5150
if ($request->getMethod() === 'GET') {
5251
return new TextResponse('Unsupported', 400);
5352
} elseif ($request->getMethod() === 'POST') {
54-
$command = new AddDarkMode($style);
53+
$command = new \wcf\command\style\AddDarkMode($style);
5554
$command();
5655

5756
return new EmptyResponse();

wcfsetup/install/files/lib/acp/action/TagSynonymAction.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use wcf\system\form\builder\container\FormContainer;
1616
use wcf\system\form\builder\field\RadioButtonFormField;
1717
use wcf\system\form\builder\Psr15DialogForm;
18-
use wcf\system\tagging\command\SetSynonym;
18+
use wcf\command\tag\SetTagSynonym;
1919
use wcf\system\WCF;
2020

2121
/**
@@ -70,7 +70,7 @@ public function handle(ServerRequestInterface $request): ResponseInterface
7070
}
7171

7272
$tagID = $form->getData()["data"]["tagID"];
73-
(new SetSynonym(
73+
(new SetTagSynonym(
7474
$tagList->search($tagID),
7575
$tagList->getObjects()
7676
))();

wcfsetup/install/files/lib/acp/action/ToggleArticleI18nAction.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
use Psr\Http\Server\RequestHandlerInterface;
1010
use wcf\data\article\Article;
1111
use wcf\http\Helper;
12-
use wcf\system\article\command\DisableI18n;
13-
use wcf\system\article\command\EnableI18n;
12+
use wcf\command\article\DisableI18n;
13+
use wcf\command\article\EnableI18n;
1414
use wcf\system\exception\IllegalLinkException;
1515
use wcf\system\form\builder\field\RadioButtonFormField;
1616
use wcf\system\form\builder\LanguageItemFormNode;

wcfsetup/install/files/lib/acp/action/UserGroupCopyAction.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use wcf\system\form\builder\field\BooleanFormField;
1616
use wcf\system\form\builder\Psr15DialogForm;
1717
use wcf\system\request\LinkHandler;
18-
use wcf\system\user\group\command\CopyUserGroup;
18+
use wcf\command\user\group\CopyUserGroup;
1919
use wcf\system\WCF;
2020

2121
/**

wcfsetup/install/files/lib/acp/form/UserEditForm.class.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@
1919
use wcf\system\html\upcast\HtmlUpcastProcessor;
2020
use wcf\system\message\embedded\object\MessageEmbeddedObjectManager;
2121
use wcf\system\moderation\queue\ModerationQueueManager;
22-
use wcf\system\option\user\UserOptionHandler;
2322
use wcf\system\style\StyleHandler;
24-
use wcf\system\user\command\SetColorScheme;
23+
use wcf\command\user\SetColorScheme;
2524
use wcf\system\user\multifactor\Setup;
2625
use wcf\system\WCF;
2726
use wcf\util\StringUtil;

wcfsetup/install/files/lib/action/ModerationQueueAssignUserAction.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use wcf\system\form\builder\field\validation\FormFieldValidationError;
1212
use wcf\system\form\builder\field\validation\FormFieldValidator;
1313
use wcf\system\form\builder\Psr15DialogForm;
14-
use wcf\system\moderation\queue\command\AssignUser;
14+
use wcf\command\moderation\queue\AssignUser;
1515
use wcf\system\WCF;
1616

1717
/**

wcfsetup/install/files/lib/action/UserAvatarAction.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use wcf\system\form\builder\field\RadioButtonFormField;
1919
use wcf\system\form\builder\IFormDocument;
2020
use wcf\system\form\builder\Psr15DialogForm;
21-
use wcf\system\user\command\SetAvatar;
21+
use wcf\command\user\SetAvatar;
2222
use wcf\system\user\UserProfileHandler;
2323
use wcf\system\WCF;
2424
use wcf\util\HtmlString;

wcfsetup/install/files/lib/action/UserFollowAction.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
use wcf\http\Helper;
1212
use wcf\system\exception\IllegalLinkException;
1313
use wcf\system\exception\PermissionDeniedException;
14-
use wcf\system\user\command\Follow;
15-
use wcf\system\user\command\Unfollow;
14+
use wcf\command\user\Follow;
15+
use wcf\command\user\Unfollow;
1616
use wcf\system\WCF;
1717

1818
/**

0 commit comments

Comments
 (0)