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

config: change default config for Auto Routing Improved #8981

Merged
merged 27 commits into from
Jun 25, 2024

Conversation

kenjis
Copy link
Member

@kenjis kenjis commented Jun 21, 2024

Needs #8980

Description

  • change the default values:
    • Feature::$autoRoutesImproved -> true
    • Routing::$translateUriToCamelCase -> true
  • add new page for "Auto Routing (Improved)" in the user guide

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@kenjis kenjis added the 4.6 label Jun 21, 2024
@kenjis kenjis marked this pull request as draft June 21, 2024 04:38
@kenjis kenjis force-pushed the change-auto-routing-improved-config branch 5 times, most recently from cd8bd92 to 5dd958e Compare June 21, 2024 07:12
@kenjis kenjis added the documentation Pull requests for documentation only label Jun 21, 2024
@kenjis kenjis marked this pull request as ready for review June 21, 2024 07:55
@kenjis kenjis marked this pull request as draft June 21, 2024 07:58
@kenjis kenjis force-pushed the change-auto-routing-improved-config branch from 9c00f98 to 61ae88e Compare June 23, 2024 13:00
@github-actions github-actions bot added the stale Pull requests with conflicts label Jun 24, 2024
Copy link

👋 Hi, @kenjis!

We detected conflicts in your PR against the base branch 🙊
You may want to sync 🔄 your branch with upstream!

Ref: Syncing Your Branch

@kenjis kenjis force-pushed the change-auto-routing-improved-config branch from 61ae88e to ecfbc2f Compare June 24, 2024 09:35
@kenjis kenjis removed the stale Pull requests with conflicts label Jun 24, 2024
@kenjis
Copy link
Member Author

kenjis commented Jun 24, 2024

Screenshot 2024-06-24 at 18-40-26 Auto Routing (Improved) — CodeIgniter 4 5 2 documentation

@kenjis kenjis marked this pull request as ready for review June 24, 2024 09:44
Copy link
Contributor

@datamweb datamweb left a comment

Choose a reason for hiding this comment

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

LGTM!

@kenjis
Copy link
Member Author

kenjis commented Jun 24, 2024

I have made a few improvements.
Screenshot 2024-06-25 at 08-50-04 Auto Routing (Improved) — CodeIgniter 4 5 2 documentation

Examples of Controller Names
****************************

This is an valid controller name. Because ``App\Controllers\HelloWorld`` is CamelCase.
Copy link
Contributor

Choose a reason for hiding this comment

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

Honestly, I didn't like using 'This is', it made the review difficult for me.

Copy link
Member Author

Choose a reason for hiding this comment

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

I changed to The following is.


1. The first segment represents the controller **class** that should be invoked.
2. The second segment represents the class **method** that should be called.
3. The third, and any additional segments, represent any **parameters** that will be passed to the controller.
Copy link
Contributor

Choose a reason for hiding this comment

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

I took from this sentence that the parameters are sent to the controller.
But the parameters are sent to the methods in the controller.

Copy link
Member Author

Choose a reason for hiding this comment

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

Changed to the controller method.

@neznaika0
Copy link
Contributor

I think it's worth adding a note about Filters.
Won't they be available ONLY through URIs?

@kenjis
Copy link
Member Author

kenjis commented Jun 25, 2024

@neznaika0 Added.
Screenshot 2024-06-25 14 41 59

Copy link
Contributor

@datamweb datamweb left a comment

Choose a reason for hiding this comment

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

Thanks!

@kenjis kenjis merged commit 4722157 into codeigniter4:4.6 Jun 25, 2024
42 checks passed
@kenjis kenjis deleted the change-auto-routing-improved-config branch June 25, 2024 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.6 documentation Pull requests for documentation only
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants