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

Initial view helpers #1

Open
wants to merge 13 commits into
base: 1.0.x
Choose a base branch
from
Open

Initial view helpers #1

wants to merge 13 commits into from

Conversation

gsteel
Copy link
Member

@gsteel gsteel commented Aug 8, 2022

Adds ServerUrl and Url view helpers along with a a factory for the Doctype view helper.

This first PR is just getting things off the ground without there being too much to review. In future PRs, I'll work on relocating the ViewEvent, Rendering strategies, more relevant factories and configuration etc.

src/Assert.php Show resolved Hide resolved
@boesing
Copy link
Member

boesing commented Nov 9, 2022

I do not use laminas-view anywhere and thus I am not the correct person to properly review this from a user PoV.
Could you probably give a quick glance on how this is actually "different" to the existing "implementation"?

I assume that most of the code is just transferred to a new namespace?

Copy link
Member

@boesing boesing left a comment

Choose a reason for hiding this comment

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

Just a lil change request here regarding the psalm-baseline.

psalm-baseline.xml Show resolved Hide resolved
psalm.xml Show resolved Hide resolved
src/Assert.php Show resolved Hide resolved
@gsteel
Copy link
Member Author

gsteel commented Nov 9, 2022

I do not use laminas-view anywhere and thus I am not the correct person to properly review this from a user PoV. Could you probably give a quick glance on how this is actually "different" to the existing "implementation"?

I assume that most of the code is just transferred to a new namespace?

Ignoring the factories and config, this PR only introduces the Url and ServerUrl view helpers. These helpers are specific to mvc and largely unchanged from what is currently in view.

Once released, view will be able to drop a bunch of deps, like laminas-http

src/Assert.php Show resolved Hide resolved
src/ConfigProvider.php Outdated Show resolved Hide resolved
src/Helper/Url.php Show resolved Hide resolved
src/Helper/Url.php Show resolved Hide resolved
src/Module.php Outdated Show resolved Hide resolved
- Upgrade psalm to v5, handle deprecations and other new issues such as unused code
- Upgrade PHPUnit to 10.x, migrate config and tests
- Drop support for PHP 8.0
- Add psalm type for view helper config array shape

Signed-off-by: George Steel <[email protected]>
MVC-TODO.md Outdated Show resolved Hide resolved
Signed-off-by: George Steel <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants