Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Update shipped module templates to use the new response redirect API

オープン
#541 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
静か
技術スタック
php
領域
tooling

調査の方向性

まず issue #540 を読んで新しい response redirect API を理解し、その後 src/Module/Templates/DemoWeb と src/Module/Templates/Toolkit にある同梱テンプレートを調べます。redirect、redirectWith、または get_referrer() を使った手動の fallback パターンを使用している生成済みのコントローラーとミドルウェアを特定します。影響を受けるテンプレートが一貫して推奨 API を使用し、古い入力に対する redirect の動作と機能的同等性を維持できていれば完了です。

索引モデルが issue の本文から書いたものです。

説明

http templates

Summary

Update shipped module templates so redirect behavior uses the new response redirect API introduced by #540 instead of older helper-first redirect patterns.

This should cover generated controllers and middlewares in the shipped templates that currently emit redirect helper usage, primarily DemoWeb and Toolkit.

Why

Current generated module code still uses older redirect helper patterns such as:

  • redirect(base_url(...) . '...')
  • redirect(get_referrer() ?? base_url())
  • redirectWith(...)

These patterns are repeated across generated controllers and middlewares in the current shipped templates.

Once #540 introduces first-class back-navigation support and a cleaner response-level redirect API, generated scaffolding should reflect that preferred direction instead of continuing to emit older helper-style usage.

Goal

Align shipped module scaffolding with the newer response redirect API so new generated code reflects the preferred redirect style.

Scope

This ticket should update shipped templates that currently emit redirect helper usage, primarily:

  • DemoWeb
  • Toolkit

This should cover generated controllers and middlewares where redirect behavior is currently expressed through older helper-first patterns.

Proposed Direction

  • replace older helper-first redirect patterns in shipped templates with the new response redirect API introduced by #540
  • use first-class back-navigation support where existing templates currently repeat get_referrer() ?? base_url() logic
  • keep the generated redirect code consistent across affected shipped templates

Examples of current patterns to replace include:

  • redirect(base_url(...) . '...')
  • redirect(get_referrer() ?? base_url())
  • redirectWith(...)

Acceptance Criteria

  • shipped module templates no longer emit repeated manual referrer fallback patterns
  • generated controllers and middlewares use the preferred response redirect API introduced by #540
  • redirect-related generated code is consistent across affected shipped templates
  • generated old-input redirect behavior remains coherent with the updated redirect API
  • templates remain functionally equivalent after the redirect API update

Notes

Relevant code includes:

  • src/Module/Templates/DemoWeb
  • src/Module/Templates/Toolkit

Depends on:

  • #540
主要言語
PHP
スター
36
フォーク
22
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

quantum-php/framework のほかの issue

quantum-php/framework の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。