Skip to content

Comments

Add a helper to use Inputs as messages#2628

Merged
soyuka merged 3 commits intoapi-platform:2.4from
soyuka:help-message-input
Mar 22, 2019
Merged

Add a helper to use Inputs as messages#2628
soyuka merged 3 commits intoapi-platform:2.4from
soyuka:help-message-input

Conversation

@soyuka
Copy link
Member

@soyuka soyuka commented Mar 19, 2019

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets na
License MIT
Doc PR wiip

@soyuka soyuka force-pushed the help-message-input branch from 742b839 to 1bdab79 Compare March 19, 2019 15:34
@dunglas
Copy link
Member

dunglas commented Mar 20, 2019

I like the idea, but I'm not a fond of the interface. Couldn't we use a new value for the messenger attribute instead? messenger="input" for instance?

@soyuka soyuka force-pushed the help-message-input branch 2 times, most recently from 6fff55a to b43fea0 Compare March 21, 2019 10:56
@soyuka
Copy link
Member Author

soyuka commented Mar 21, 2019

Done @dunglas wdyt?

return 'input' === $metadata->getAttribute('messenger');
}

return 'input' === $this->resourceMetadataFactory->create($context['resource_class'] ?? $to)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
return 'input' === $this->resourceMetadataFactory->create($context['resource_class'] ?? $to)
return 'input' === $metadata

@dunglas
Copy link
Member

dunglas commented Mar 21, 2019

looks good to me

@soyuka soyuka force-pushed the help-message-input branch from b43fea0 to b7fd72c Compare March 21, 2019 13:42
@soyuka soyuka force-pushed the help-message-input branch from b7fd72c to f42cc11 Compare March 21, 2019 13:43
@soyuka soyuka force-pushed the help-message-input branch from 7c69b49 to 1985101 Compare March 21, 2019 16:16
@soyuka soyuka merged commit 3bc6be5 into api-platform:2.4 Mar 22, 2019
@soyuka soyuka deleted the help-message-input branch March 22, 2019 07:54
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