Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Add helper trait to provide type-hinting for zend-view #217

Merged
merged 11 commits into from
Dec 11, 2018

Conversation

thexpand
Copy link
Contributor

In favor of the following proposal:
zendframework/zend-view#102

src/View/HelperTrait.php Outdated Show resolved Hide resolved
src/View/HelperTrait.php Outdated Show resolved Hide resolved
src/View/HelperTrait.php Outdated Show resolved Hide resolved
src/View/HelperTrait.php Show resolved Hide resolved
* @example @var \Zend\View\Renderer\PhpRenderer|\Zend\Form\View\HelperTrait $this
*
* @method string|Form form(FormInterface $form = null)
* @method string|FormButton formButton(ElementInterface $element = null, $buttonContent = null)
Copy link
Member

Choose a reason for hiding this comment

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

We can add also the data types. See my comment here: zendframework/zend-i18n#102 (comment)

@froschdesign
Copy link
Member

The usage of this trait must be explained in the documentation.

@froschdesign
Copy link
Member

@thexpand thexpand changed the base branch from master to develop September 5, 2018 08:38
Previously it was wrongly placed in the src (main directory) of the component.
… in order to overcome the 120 characters limit

The comment has been copied from the PhpRenderer in the zend-view component.
@thexpand
Copy link
Contributor Author

thexpand commented Sep 5, 2018

@froschdesign
I suggest adding the docs below the View Helpers > AbstractHelper section.
More information about the naming: zendframework/zend-i18n#102 (comment)
Link to the abstract helper section: https://docs.zendframework.com/zend-form/helper/abstract-helper/

@froschdesign
Copy link
Member

@thexpand
Why not on the introduction page of the view helpers?

https://docs.zendframework.com/zend-form/helper/intro/

@weierophinney weierophinney added this to the 2.13.0 milestone Dec 11, 2018
@weierophinney weierophinney merged commit d209ef6 into zendframework:develop Dec 11, 2018
weierophinney added a commit that referenced this pull request Dec 11, 2018
Add helper trait to provide type-hinting for zend-view
weierophinney added a commit that referenced this pull request Dec 11, 2018
weierophinney added a commit that referenced this pull request Dec 11, 2018
@weierophinney
Copy link
Member

Thanks, @thexpand!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants