Skip to content

Conversation

@Vabogco
Copy link

@Vabogco Vabogco commented Sep 2, 2021

Bring possibility to configurate default strategy value.
Example:

lamoda_enum:
  enum_name_type_mapping: true
  default_strategy: lowercase
  dbal_types:
    contract_type_enum:
      class: Platform\Enum\ContractTypeEnum
      strategy: identical
    exchange_system_enum:
      class: Platform\Enum\ExchangeSystemEnum

tests are also provided.

Copy link
Contributor

@scaytrase scaytrase left a comment

Choose a reason for hiding this comment

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

Small change requested. For other - 👍 looks good to me


final class Configuration implements ConfigurationInterface
{
private array $strategies = [
Copy link
Contributor

Choose a reason for hiding this comment

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

I this this suits better here

Suggested change
private array $strategies = [
private const STRATEGIES = [

Copy link
Author

Choose a reason for hiding this comment

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

fixed

Copy link
Contributor

@scaytrase scaytrase left a comment

Choose a reason for hiding this comment

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

👍

@scaytrase scaytrase merged commit 7ed1840 into lamoda:master Sep 2, 2021
@scaytrase
Copy link
Contributor

Thanks @Vabogco !

@scaytrase
Copy link
Contributor

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.

2 participants