Skip to content

Commit

Permalink
#311 답변에 대한 Intercept 함수 명을 모두 변경했습니다.
Browse files Browse the repository at this point in the history
  • Loading branch information
xharpenParksuhyeon committed Aug 20, 2021
1 parent 8e8c307 commit ddd4f12
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions src/Plugin/Intercepts/ReplyIntercepts.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ public static function listenReplyArticles()
}

/**
* intercept validate stored
* intercept stored
*/
public static function interceptValidateStored()
public static function interceptStored()
{
$function = function ($function, Request $request, UserInterface $user, ConfigEntity $config, IdentifyManager $identifyManager) {
$parentId = $request->get('parent_id');
Expand Down Expand Up @@ -120,9 +120,9 @@ public static function interceptValidateStored()
}

/**
* intercept validate updated
* intercept updated
*/
public static function interceptValidateUpdated()
public static function interceptUpdated()
{
$function = function ($function, Board $item, Request $request, UserInterface $user, ConfigEntity $config, IdentifyManager $identifyManager) {
$replyConfig = ReplyConfigHandler::make()->getByBoardConfig($item->instance_id);
Expand Down Expand Up @@ -169,9 +169,9 @@ public static function interceptValidateUpdated()
}

/**
* intercept protect deleted
* intercept deleted
*/
public static function interceptProtectDeleted()
public static function interceptDeleted()
{
$function = function ($function, Board $item, ConfigEntity $config) {
$replyConfig = ReplyConfigHandler::make()->getByBoardConfig($item->instance_id);
Expand Down
6 changes: 3 additions & 3 deletions src/Plugin/Resources.php
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,9 @@ function ($deleteCategory, $item, $force = true) {
public static function interceptReply()
{
Plugin\Intercepts\ReplyIntercepts::listenReplyArticles();
Plugin\Intercepts\ReplyIntercepts::interceptValidateStored();
Plugin\Intercepts\ReplyIntercepts::interceptValidateUpdated();
Plugin\Intercepts\ReplyIntercepts::interceptProtectDeleted();
Plugin\Intercepts\ReplyIntercepts::interceptStored();
Plugin\Intercepts\ReplyIntercepts::interceptUpdated();
Plugin\Intercepts\ReplyIntercepts::interceptDeleted();
}

/**
Expand Down

0 comments on commit ddd4f12

Please sign in to comment.