Skip to content

Twig and Qiq template path navigation

Choose a tag to compare

@suzumaze suzumaze released this 08 Sep 12:16
d9d765e

Added

  • Added definition navigation for static Twig template paths in extends, include, include(), and the second argument of block().
  • Added definition navigation for Qiq setLayout(), render(), and extends() calls in both Qiq helper syntax and native $this->... PHP syntax.
  • Added Qiq catalog-root paths, leading-slash paths, and render-stack-relative ./ / ../ resolution.
  • Added whole-name DocumentLinks for resolved Twig and Qiq template references.

Integration

  • Preserves the existing #[Embed] relation navigation introduced in v0.1.1.
  • Documents explicit template paths and embedded relations as complementary navigation modes.

Safety and limitations

  • Only static template string literals are resolved.
  • Paths escaping the configured template root are rejected.
  • Custom Twig namespaces and custom Qiq paths, extensions, and collections are not inferred.

Verification

  • PHPUnit: 213 tests, 964 assertions.
  • CI passed on PHP 8.2, 8.3, 8.4, and 8.5.
  • PHPStan and PHPCS passed.