Skip to content
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

[WIP] Refactoring #16

Merged
merged 25 commits into from
Feb 26, 2020
Merged

[WIP] Refactoring #16

merged 25 commits into from
Feb 26, 2020

Conversation

rustamwin
Copy link
Member

Q A
Is bugfix? ✔️
New feature? ✔️
Breaks BC? ✔️
Tests pass? ?
Fixed issues -

@rustamwin rustamwin marked this pull request as ready for review February 10, 2020 12:56
@xepozz
Copy link
Member

xepozz commented Feb 10, 2020

yiisoft/files is missing

Copy link
Member

@xepozz xepozz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Too raw. Are you want to develop iteratively?

config/common.php Outdated Show resolved Hide resolved
config/console.php Outdated Show resolved Hide resolved
src/Command/BaseGenerateCommand.php Outdated Show resolved Hide resolved
src/Command/BaseGenerateCommand.php Outdated Show resolved Hide resolved
src/Command/ControllerCommand.php Outdated Show resolved Hide resolved
src/Command/ControllerCommand.php Outdated Show resolved Hide resolved
src/Controller/DefaultController.php Show resolved Hide resolved
src/Generators/Controller/Generator.php Outdated Show resolved Hide resolved
src/Generators/Generator.php Outdated Show resolved Hide resolved
src/Gii.php Outdated Show resolved Hide resolved
@rustamwin
Copy link
Member Author

This is part of the development, opinions are needed for initial development. The rest in a separate PRs (tests, other generators, UI, etc..)

@xepozz xepozz requested a review from a team February 13, 2020 16:38
README.md Show resolved Hide resolved
@samdark samdark added the status:code review The pull request needs review. label Feb 13, 2020
@samdark samdark requested a review from a team February 13, 2020 22:49
Copy link
Member

@xepozz xepozz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Folders names should be singular instead of plural

composer.json Show resolved Hide resolved
src/CodeFile.php Outdated Show resolved Hide resolved
src/CodeFile.php Outdated Show resolved Hide resolved
src/Command/BaseGenerateCommand.php Show resolved Hide resolved
src/Command/BaseGenerateCommand.php Show resolved Hide resolved
src/Generators/Generator.php Outdated Show resolved Hide resolved
src/Gii.php Outdated Show resolved Hide resolved
* @throws NotFoundException
* @throws GeneratorNotFoundException
*/
public function getGenerator(string $name): GeneratorInterface
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we pre-cache already initialized generators into private property (e.g. $generatorsInstances)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do it in the next PRs

tests/GiiTestCase.php Outdated Show resolved Hide resolved
src/Generators/Controller/Generator.php Outdated Show resolved Hide resolved
@samdark samdark requested a review from a team February 14, 2020 12:55
Copy link
Member

@samdark samdark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a good direction overall. Do you want to continue in the branch or merge and then do separate pull requests?

composer.json Outdated Show resolved Hide resolved
src/GeneratorInterface.php Outdated Show resolved Hide resolved
@rustamwin
Copy link
Member Author

There are some improvements, then I do a separate PRs

@rustamwin rustamwin added status:ready for merge The pull request is OK to be merged. and removed status:code review The pull request needs review. labels Feb 26, 2020
@rustamwin
Copy link
Member Author

Ready.

@samdark samdark merged commit 1fda594 into yiisoft:master Feb 26, 2020
@samdark
Copy link
Member

samdark commented Feb 26, 2020

Merged.

@rustamwin rustamwin deleted the refactoring branch February 27, 2020 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:ready for merge The pull request is OK to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants