We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1a0087 commit 1734da9Copy full SHA for 1734da9
src/Enum/SymfonyClass.php
@@ -95,4 +95,9 @@ final class SymfonyClass
95
* @var string
96
*/
97
public const ABSTRACT_CONTROLLER = 'Symfony\Bundle\FrameworkBundle\Controller\AbstractController';
98
+
99
+ /**
100
+ * @var string
101
+ */
102
+ public const CONTROLLER_TRAIT = 'Symfony\Bundle\FrameworkBundle\Controller\ControllerTrait';
103
}
src/TypeAnalyzer/ContainerAwareAnalyzer.php
@@ -22,7 +22,7 @@ public function __construct(
22
$this->getMethodAwareObjectTypes = [
23
new ObjectType(SymfonyClass::ABSTRACT_CONTROLLER),
24
new ObjectType(SymfonyClass::CONTROLLER),
25
- new ObjectType('Symfony\Bundle\FrameworkBundle\Controller\ControllerTrait'),
+ new ObjectType(SymfonyClass::CONTROLLER_TRAIT),
26
];
27
28
0 commit comments