Closed vjik closed 7 months ago
Q | A |
---|---|
Is bugfix? | ❌ |
New feature? | ✔️ |
Breaks BC? | ❌ |
Added Feature for Specifying Default Host and Scheme
The update includes a new feature in the UrlGenerator
class that lets users outline a default host and scheme. In other words, it creates a standard template for URL creation when not specified in unique cases. This adjustment is applied in the constructor phase of the UrlGenerator
and can be overridden later as needed.
Updated generateAbsolute
Method to Apply Default Settings
There have been changes in the generateAbsolute
method within the UrlGenerator
class. Now, when generating a complete URL, if a host or a scheme value isn't provided individually, the method draws from the now available default host and scheme. This change provides increased flexibility and customization to URL generation.
Inclusion of New Test Cases
New test scenarios have been added to verify the performance and validity of the updated components within the UrlGenerator
class. It ensures the newly integrated feature of default host and scheme fully performs as designed.
Addressing Formatting Issue in UrlGeneratorTest
Class
This change corrects a formatting problem identified in the UrlGeneratorTest
class. This correction ensures improved readability and comprehension of the tests.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 99.50%. Comparing base (
77da24c
) to head (8e00264
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.