رفتن به محتوا
PHP Ecosystem
Explore

AI assistance

این محتوا هنوز به زبان شما در دسترس نیست.

Use the package-owned yii2-localeurls-configuration skill for language URL configuration, canonical redirects, persistence, and request isolation. Use the guides directly for ordinary reading; translation writing and unrelated routers do not need this skill.

The canonical source is skills/yii2-localeurls-configuration/SKILL.md. The .agents/skills/ and .claude/skills/ entries point to that source for local discovery.

Complete the one-time application setup to enable llm/skills and set auto-sync to true in skills.json. Approve yii2-extensions/localeurls explicitly in dependencies.composer.trusted. The installed package must include its skill bundle; its extra.skills.source declares the directory.

Terminal window
composer install
composer skills:show

With auto-sync enabled, later dependency installs and updates synchronize the skill automatically; no per-skill installer is required. If auto-sync is false, run composer skills:update after dependency installation or updates.

From the application root, list the source before installing:

Terminal window
npx skills@1.7.2 add yii2-extensions/localeurls --list
npx skills@1.7.2 add yii2-extensions/localeurls --skill yii2-localeurls-configuration

Select Codex, Claude Code, or OpenCode in the installer as appropriate. Installation, discovery, native loading, and successful configuration are different outcomes: verify each one before reporting it. An installed skill does not install Composer dependencies.

Prefer this checkout’s configuration guide and installed source at the same revision. When a hosted guide is unavailable, say so and use the local guide; do not guess an API endpoint. Run the relevant package checks after changes. Keep session/CSRF/cookie validation and application routes intact, and distinguish direct manager tests from an actual worker or browser run.

Start a fresh client session at the application root. The explicit example uses Codex’s $skill-name notation; use /yii2-localeurls-configuration in Claude Code or the installed client’s native skill mechanism. Do not paste the skill body and count that as native activation. These are tasks to execute and verify, not claims that an evaluation has passed.

$yii2-localeurls-configuration
Configure a language alias and explicit default language for the installed locale URL manager. Show checks for two
successive request objects, an uncoded URL and a canonical redirect while retaining query parameters correctly.
Inspect the installed revision first. Do not install dependencies or change files without authorization.
After a French request, an ignored URL keeps the wrong language in my long-lived application. How can I test default
language reset and ensure that processed Request instances are not reused?

Assert route, language, generated URL and redirect target for separate request objects. Direct parsing does not prove browser cookie exchange. Record native loading evidence separately from configuration review, executable checks and browser/runtime results. For a negative selection control, ask an unrelated question in a fresh session and confirm this package skill is not loaded. Keep evaluation traces private; report unavailable checks rather than treating discovery as execution.

Back to documentation