Skip to content

Commit a88fa50

Browse files
committed
Fix invalid intention configration
1 parent 4336bc9 commit a88fa50

File tree

7 files changed

+31
-58
lines changed

7 files changed

+31
-58
lines changed

src/main/resources/META-INF/plugin.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,13 +333,13 @@
333333
language=""
334334
implementationClass="fr.adrienbrault.idea.symfony2plugin.routing.inspection.DuplicateLocalRouteInspection"/>
335335

336-
<localInspection groupPath="Symfony" shortName="Symfony2XmlDuplicateServiceKeyInspection" displayName="Duplicate Key"
336+
<localInspection groupPath="Symfony" shortName="XmlDuplicateServiceKeyInspection" displayName="Duplicate Key"
337337
groupName="Service"
338338
enabledByDefault="true" level="WARNING"
339339
language="XML"
340340
implementationClass="fr.adrienbrault.idea.symfony2plugin.config.xml.inspection.XmlDuplicateServiceKeyInspection"/>
341341

342-
<localInspection groupPath="Symfony" shortName="Symfony2XmlDuplicateParameterKeyInspection" displayName="Duplicate Key"
342+
<localInspection groupPath="Symfony" shortName="XmlDuplicateParameterKeyInspection" displayName="Duplicate Key"
343343
groupName="Service"
344344
enabledByDefault="true" level="WARNING"
345345
language="XML"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// config/services.yaml
2+
// After applying the intention, the service definition
3+
// is synchronized with the constructor parameters:
4+
//
5+
// services:
6+
// App\Service\OrderProcessor:
7+
// arguments:
8+
// - '@logger'
9+
// - '@App\Repository\OrderRepository'
10+
// - '@App\Service\EmailService'

src/main/resources/intentionDescriptions/PhpServiceArgumentIntention/after.xml.template

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/main/resources/intentionDescriptions/PhpServiceArgumentIntention/after.yaml.template

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// src/Service/OrderProcessor.php
2+
//
3+
// You've updated the constructor, adding new dependencies.
4+
// Use the intention to sync the service definition in
5+
// config/services.yaml or config/services.xml
6+
7+
namespace App\Service;
8+
9+
use App\Repository\OrderRepository;
10+
use Psr\Log\LoggerInterface;
11+
12+
class OrderProcessor
13+
{
14+
public function __construct(
15+
private LoggerInterface $logger,
16+
private OrderRepository $orderRepository,
17+
private EmailService $emailService,<spot>
18+
) {}
19+
}

src/main/resources/intentionDescriptions/PhpServiceArgumentIntention/before.xml.template

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/main/resources/intentionDescriptions/PhpServiceArgumentIntention/before.yaml.template

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)