Skip to content

Conversation

odolbeau
Copy link
Member

Start using service FQCN instead of id.

Copy link
Member

@Nyholm Nyholm left a comment

Choose a reason for hiding this comment

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

Looks good!

Thank you

@Nyholm Nyholm merged commit 45741ad into php-translation:master Dec 26, 2019
@rvanlaak
Copy link
Member

Great job! 👏

@@ -1,6 +1,5 @@
services:
php_translator.fallback_translator:
class: Translation\Bundle\Translator\FallbackTranslator
Translation\Bundle\Translator\FallbackTranslator:
Copy link
Member

Choose a reason for hiding this comment

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

I think you missed php_translator.fallback_translator in adding a deprecated alias.

php_translator.fallback_translator:
	alias:  Translation\Bundle\Translator\FallbackTranslator
	deprecated: ~

@@ -1,51 +1,63 @@
services:
php_translator.console.delete_obsolete:
class: Translation\Bundle\Command\DeleteObsoleteCommand
Translation\Bundle\Command\DeleteObsoleteCommand:
public: true
arguments:
Copy link
Member

Choose a reason for hiding this comment

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

What about removing all arguments definitions, and:

_defaults:
	autowire: true

@odolbeau odolbeau deleted the use-fqcn branch December 29, 2019 22:52
@odolbeau odolbeau restored the use-fqcn branch December 29, 2019 22:56
@odolbeau odolbeau deleted the use-fqcn branch December 29, 2019 22:59
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.

3 participants