Skip to content

PHPlumb 0.4.0

Choose a tag to compare

@lussoluca lussoluca released this 29 Oct 08:04

🤖 This was written by an AI agent on behalf of @lussoluca (claude-code/claude-opus-5-5).

PHPlumb 0.4.0 adds Symfony support and follows code through PHP's built-in symbols, enums and generic types.

Symfony

The module turns on when the project's composer.lock requires symfony/framework-bundle. The new phplumb.frameworks.symfony setting forces it on or off.

  • Routes. A route name in redirectToRoute(), generateUrl() or Twig path() and url() opens its controller or its YAML route.
  • Templates. A template name in render(), #[Template] or a Twig tag opens the Twig file, including twig.paths namespaces.
  • Messenger. dispatch() lists the handlers of the message, and a handler lists the places that dispatch its message.
  • Parameters and YAML. A parameter name in getParameter(), #[Autowire] or %x% opens its definition. Classes and @service ids in config/ YAML open theirs.
  • Doctrine. *.orm.xml mappings link to their classes and properties, and getRepository(X::class) is typed as the entity's repository.
  • Broken references. Route, template and parameter names defined nowhere are flagged in PHP, Twig and YAML. A name stays silent when a source that could define it cannot be read.

PHP

  • Built-in symbols. Functions, classes and constants such as array_map() and DateTime resolve from phpstorm stubs bundled with the extension.
  • Enums. Enum cases are typed as their enum, and enums get their implicit UnitEnum and BackedEnum interfaces.
  • Generics. PHPDoc templates and element types carry through foreach, array access, array callbacks and generic classes.

Changed

  • Each framework module reads only the folder of its own composer.lock. A Drupal codebase inside a Symfony application gets each module in its own folder.

Install the .vsix for your platform with code --install-extension <file>. Requires VS Code 1.140 or later on macOS (Apple silicon) or Linux (x64).