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

Cleanup BasePath View Helper #157

Merged
merged 4 commits into from
Sep 19, 2022

Conversation

gsteel
Copy link
Member

@gsteel gsteel commented Mar 24, 2022

Q A
BC Break no
New Feature yes
QA yes

Description

  • Mark helper as final and deprecate inherited methods / inheritance
  • Add constructor that accepts the configured base path
  • Deprecate runtime modification of the base path
  • Improve helper tests and cover uncovered paths
  • Introduce and wire up a factory for the helper that retrieves the base path from the expected config as per MVC docs

- Mark helper as final and deprecate inherited methods / inheritance
- Add constructor that accepts the configured base path
- Deprecate runtime modification of the base path
- Improve helper tests and cover uncovered paths
- Introduce and wire up a factory for the helper that retrieves the base path from the expected config as per MVC docs

Signed-off-by: George Steel <george@net-glue.co.uk>
src/Helper/BasePath.php Outdated Show resolved Hide resolved
src/Helper/BasePath.php Outdated Show resolved Hide resolved
Signed-off-by: George Steel <george@net-glue.co.uk>
Signed-off-by: George Steel <george@net-glue.co.uk>
@gsteel gsteel requested a review from Ocramius April 6, 2022 21:35
Signed-off-by: George Steel <george@net-glue.co.uk>
@Ocramius Ocramius changed the base branch from 2.21.x to 2.23.x September 19, 2022 15:36
@Ocramius Ocramius added this to the 2.23.0 milestone Sep 19, 2022
Copy link
Member

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

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

LGTM! I will merge+release this after laminas/automatic-releases#210 is through.

Thanks @gsteel!

@Ocramius Ocramius self-assigned this Sep 19, 2022
@Ocramius Ocramius merged commit 69ea122 into laminas:2.23.x Sep 19, 2022
@gsteel gsteel deleted the helpers/base-path-cleanup branch September 19, 2022 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants