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

Allow easy routing implementation #706

Merged
merged 5 commits into from
May 13, 2019
Merged

Conversation

abbadon1334
Copy link
Collaborator

if you extend App class and want to use routing in place of direct call to files, you have to complete override the method url of App, to change only 2 occurence of ".php", even if the first occurence at line 542 is only for completeness, the other one on line 587 must be changed to avoid reparsing the result of a parent::url(args) if you plan to only partially override that is nonsense.

i put the variable protected because is something that never change and must work in extended class.

if you extend App class and want to use routing in place of direct call to files, you have to complete override the method url of App, to change only 2 occurence of ".php", even if the first occurence at line 542 is only for completeness, the other one on line 587 must be changed to avoid reparsing the result of a parent::url(args) if you plan to only partially override that is nonsense.

i put the variable protected because is something that never change and must work in extended class.
@codecov
Copy link

codecov bot commented May 11, 2019

Codecov Report

Merging #706 into develop will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##             develop     #706   +/-   ##
==========================================
  Coverage      68.85%   68.85%           
  Complexity      2047     2047           
==========================================
  Files            106      106           
  Lines           4819     4819           
==========================================
  Hits            3318     3318           
  Misses          1501     1501
Impacted Files Coverage Δ Complexity Δ
src/App.php 72.9% <100%> (ø) 117 <0> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 66a0284...c416a12. Read the comment docs.

Copy link
Member

@romaninsh romaninsh left a comment

Choose a reason for hiding this comment

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

i like this.

@romaninsh romaninsh merged commit c20cc2d into atk4:develop May 13, 2019
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