# Symfony Plugin Other

**Other features** include various utilities and enhancements that don't fit into the main categories.

---

## Find Usages for translation keys

**Feature ID:** `TranslationKeyFindUsages`  
**Date:** 2026-11-13  
**Feature Page:** [Find Usages for translation keys](https://espend.de/phpstorm/plugin/symfony#translation-key-find-usages)  

Find Usages on a translation key in a YAML, PHP or XLIFF catalog includes matching PHP and Twig calls, form options and constraint messages.

Matches the translation domain, including Twig default domains and the base domain of `+intl-icu` catalogs.

### Code Examples

```yaml
# Find Usages on product.title in translations/messages.en.yaml:
product.title: 'Product'
```

```twig
# Matching Twig usage:
{{ 'product.title'|trans }}
```

```php
# Matching PHP and form usages:
$translator->trans('product.title');
$builder->add('title', options: ['label' => 'product.title']);
```

---

## IntelliJ Endpoints Tool Window Integration

**Feature ID:** `SymfonyEndpointProvider`  
**Date:** 2026-03-02  
**Feature Page:** [IntelliJ Endpoints Tool Window Integration](https://espend.de/phpstorm/plugin/symfony#symfony-endpoint-provider)  

Integrates Symfony routes with IntelliJ Ultimate's **Endpoints** tool window. Routes are displayed with HTTP methods, paths, and controller information.

---

## Find Usages for Symfony routes

**Feature ID:** `RouteFindUsagesHandler`  
**Date:** 2026-04-09  
**Feature Page:** [Find Usages for Symfony routes](https://espend.de/phpstorm/plugin/symfony#route-find-usages-handler)  

Runs IntelliJ's **Find Usages** on route declarations and returns PHP and Twig route references in one result view.

Twig route usages are indexed from `path()`, `url()`, route comparisons, and other route-aware Twig contexts, while PHP usages are filtered to real route references.

### Code Examples

```php
# Route declaration:
#[Route('/product/{id}', name: 'app_product_show')]
public function show(Product $product): Response
{
}
```

```twig
# Twig and PHP usages:
<a href="{{ path('app_product_show', {id: product.id}) }}">
    {{ product.name }}
</a>
```

---

## Find Usages for PHP symbols from Twig

**Feature ID:** `TwigFindUsagesHandlerFactory`  
**Date:** 2026-04-15  
**Feature Page:** [Find Usages for PHP symbols from Twig](https://espend.de/phpstorm/plugin/symfony#twig-find-usages-handler-factory)  

Finds Twig usages of PHP symbols and form fields.

### Code Examples

```twig
# PHP member usages in Twig:
{# @var product \App\Entity\Product #}
{{ product.name }}
{{ product.getName() }}
```

```twig
# Twig extension and constant usages:
{{ product_number(product) }}
{{ product.sku|product_label }}
{{ constant('App\\Enum\\Status::ACTIVE') }}
```

```php
# Find Usages on the private form property:
use Symfony\Component\Form\Attribute\AsFormType;
use Symfony\Component\Form\Attribute\FormField;

#[AsFormType]
class ContactData
{
    #[FormField(name: 'displayName')]
    private string $name;
}
```

```twig
# Matching Twig form field:
{{ form.displayName }}
```

---

## Find Usages for Twig Templates

**Feature ID:** `TwigTemplateReferencesSearchExecutor`  
**Date:** 2026-03-03  
**Feature Page:** [Find Usages for Twig Templates](https://espend.de/phpstorm/plugin/symfony#twig-template-references-search-executor)  

Use IntelliJ's **Find Usages** (Alt+F7) on any Twig template to see all references grouped by semantic type: extends, include, embed, import, from, form_theme, controller, and component.

### Code Examples

```
# extends:
{% extends 'base.html.twig' %}
```

```
# include:
{% include 'partials/nav.html.twig' %}
{{ include('partials/nav.html.twig') }}
{{ source('partials/nav.html.twig') }}
```

```
# embed:
{% embed 'layout.html.twig' %}
    {% block content %}Override{% endblock %}
{% endembed %}
```

```
# import / from:
{% import 'macros.html.twig' as macros %}
{% from 'macros.html.twig' import input as text_input %}
```

```
# form_theme:
{% form_theme form with 'form/div_layout.html.twig' %}
```

```
# controller:
return $this->render('home/index.html.twig');
return $this->renderView('home/index.html.twig');
```

```
# component:
{{ component('Alert', { type: 'success' }) }}
{% component Alert type='success' %}{% endcomponent %}
<twig:Alert type="success"></twig:Alert>
```

---

## Find Usages for Symfony form fields

**Feature ID:** `FormFieldReferencesSearchExecutor`  
**Date:** 2026-09-07  
**Feature Page:** [Find Usages for Symfony form fields](https://espend.de/phpstorm/plugin/symfony#form-field-references-search-executor)  

Find Usages on PHP properties and getters/setters includes matching form fields mapped via `data_class`.

### Code Examples

```php
# Find Usages on Product::$title:
class Product {
    public string $title;
}
```

```php
# Matching field in ProductType:
// configureOptions()
$resolver->setDefaults(['data_class' => Product::class]);

// buildForm()
$builder->add('title');
```

---

## Twig block() function template resolution

**Feature ID:** `TwigBlockFunctionTemplateResolution`  
**Date:** 2026-04-01  
**Feature Page:** [Twig block() function template resolution](https://espend.de/phpstorm/plugin/symfony#twig-block-function-template-resolution)  

Resolves template names passed to Twig's `block()` function and includes them in template navigation, move/rename handling, and template usage classification.

### Code Examples

```twig
# Template argument in block():
{{ block('teaser', 'partials/_teaser.html.twig') }}
```

---

## Symfony implicit usage detection

**Feature ID:** `SymfonyImplicitUsageProvider`  
**Date:** 2026-04-12  
**Feature Page:** [Symfony implicit usage detection](https://espend.de/phpstorm/plugin/symfony#symfony-implicit-usage-provider)  

Marks framework entry points as used so IDE unused-declaration inspections do not flag them.

### Code Examples

```php
# Attribute-driven entry points:
<?php

#[AsCommand(name: 'app:sync')]
final class SyncCommand extends Command
{
    public function __invoke(): int {}
}

#[AsEventListener(event: KernelEvents::EXCEPTION, method: 'onKernelException')]
final class ExceptionListener
{
    public function onKernelException(): void {}
}

#[ORM\Entity]
final class Product
{
    #[ORM\PrePersist]
    public function updateTimestamps(): void {}
}
```

```php
# Kernel hook recognized as used:
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
use Symfony\Component\HttpKernel\Kernel as BaseKernel;

class Kernel extends BaseKernel
{
    use MicroKernelTrait;

    protected function getAllowedEnvs(): array
    {
        return ['dev', 'test', 'prod'];
    }
}
```

---

## Method-based command completion and navigation

**Feature ID:** `SymfonyMethodBasedCommandSupport`  
**Date:** 2026-06-12  
**Feature Page:** [Method-based command completion and navigation](https://espend.de/phpstorm/plugin/symfony#symfony-method-based-command-support)  

Provides completion and navigation for commands declared with `#[AsCommand]` on public methods.

### Code Examples

```php
# Example
use Symfony\Component\Console\Attribute\Argument;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Attribute\Option;
use Symfony\Component\Console\Command\Command;

final class UserCommands
{
    #[AsCommand('app:user:create')]
    public function create(
        #[Argument(description: 'User name')] string $username,
        #[Option(name: 'dry-run', shortcut: 'd')] bool $dryRun = false,
    ): int {
        return Command::SUCCESS;
    }
}
```

---

## Symfony Profiler status bar navigation

**Feature ID:** `SymfonyProfilerWidget`  
**Date:** 2014-02-08  
**Feature Page:** [Symfony Profiler status bar navigation](https://espend.de/phpstorm/plugin/symfony#symfony-profiler-widget)  

Shows recent profiler requests in the status bar and navigates to profiler pages, project files, and rendered Twig components.

---

## AssetMapper: importmap function

---

## Controller shortcut: renderBlock

---

## Related template target

---

## Related method targets

---

## Symfony Console Command Completion in Terminal

**Feature ID:** `CommandNameTerminalCompletionContributor`  
**Date:** 2025-12-11  
**Feature Page:** [Symfony Console Command Completion in Terminal](https://espend.de/phpstorm/plugin/symfony#command-name-terminal-completion-contributor)  

Provides intelligent code completion for Symfony console commands directly in the integrated terminal. When typing `bin/console` or `console` commands, the plugin automatically suggests available commands, and for command options after the command name.

Supports completion for:

### Code Examples

```twig
# Example
bin/console NAME
```

---

