-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Controller周辺のリファクタリング、型の厳格化、コードのデカップリング等 #108 #256 #321
Merged
fc2dev
merged 34 commits into
fc2blog:master
from
uzulla:issue108/refactoring-controller
Jun 5, 2021
Merged
Controller周辺のリファクタリング、型の厳格化、コードのデカップリング等 #108 #256 #321
fc2dev
merged 34 commits into
fc2blog:master
from
uzulla:issue108/refactoring-controller
Jun 5, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Only UserController needs renderByFc2Template().
- Non existent method call are already filtered by Router
- remove unused request dependency. - rename getBlogId to getBlogIdFromSession. that makes confuse because same name method available in other class.
uzulla
changed the title
WIP: Issue108/refactoring controller
Controller周辺のリファクタリング、型の厳格化、コードのデカップリング等 #108
Jun 5, 2021
uzulla
changed the title
Controller周辺のリファクタリング、型の厳格化、コードのデカップリング等 #108
Controller周辺のリファクタリング、型の厳格化、コードのデカップリング等 #108 #256
Jun 5, 2021
uzulla
force-pushed
the
issue108/refactoring-controller
branch
from
June 5, 2021 08:01
bace34f
to
815e05d
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
rel #108 #256
Controller
親クラスの責務を分割し、処理を必要なクラスに移譲。Controller
にdeclare(strict_types=1);
を付与し、暗黙の型変換を抑制、型変換を明示的に記述__call
をつかっていたのを廃止(すでにRouterでフィルター済み)BlogTemplatesModel
からテンプレート関連のコンパイル、文法チェック等のロジックをFc2BlogTemplate
に分割し、静的解析に対する透明性の向上。declare(strict_types=1);
の範囲を拡大getBlogId
不要な引数の削減と、名称変更Request::isValidSig()
に書き換えて揃えたUserController::getBlogId
を$request->getBlogId()
に変更し、削除作業時間 7h