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

[TASK] Migrate DatabaseCommandController to Symfony Commands #840

Merged
merged 2 commits into from Sep 30, 2019

Conversation

gilbertsoft
Copy link
Contributor

@gilbertsoft gilbertsoft commented Sep 28, 2019

The following commands are migrated from a CommandController structure
to Symfony Commands:

  • database:export
  • database:import
  • database:updateschema

@gilbertsoft gilbertsoft force-pushed the sf-database branch 5 times, most recently from b029faf to 55ba84b Compare September 28, 2019 15:34
@gilbertsoft gilbertsoft marked this pull request as ready for review September 28, 2019 15:39
@gilbertsoft gilbertsoft changed the title [TASK] Migrate DatabaseCommandController to Symfony Commands [!!!][TASK] Migrate DatabaseCommandController to Symfony Commands Sep 28, 2019
@helhum
Copy link
Member

helhum commented Sep 30, 2019

Thanks for creating all these pull requests 😍

(removed deprecations and streamlined)

I'd like to do deprecation removal and streamlining a different task. Thanks!

@gilbertsoft
Copy link
Contributor Author

consts are removed now, restore of removal of deprecations still pending...

@gilbertsoft
Copy link
Contributor Author

Removals are restored now

@gilbertsoft gilbertsoft changed the title [!!!][TASK] Migrate DatabaseCommandController to Symfony Commands [TASK] Migrate DatabaseCommandController to Symfony Commands Sep 30, 2019

$objectManager = GeneralUtility::makeInstance(ObjectManager::class);
$this->connectionConfiguration = $connectionConfiguration
?? $objectManager->get(ConnectionConfiguration::class);
Copy link
Member

Choose a reason for hiding this comment

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

using the object manager here is unnecessary and counter productive.

please keep using new, like in DatabaseExportCommand


class DatabaseExportCommand extends AbstractConvertedCommand
Copy link
Member

Choose a reason for hiding this comment

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

please keep this already converted command unchanged. thanks.

gilbertsoft and others added 2 commits September 30, 2019 14:39
The following commands are migrated from a CommandController structure to Symfony Commands:

- database:export
- database:import
- database:updateschema
@helhum helhum merged commit 776e2ce into TYPO3-Console:master Sep 30, 2019
@helhum helhum deleted the sf-database branch September 30, 2019 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants