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 4556854 commit f724487Copy full SHA for f724487
src/Maker/MakeSubscriber.php
@@ -127,17 +127,12 @@ public function configureDependencies(DependencyBuilder $dependencies): void
127
128
private function getEventConstant(string $event): ?string
129
{
130
- $constants = $this->getKernelEventsConstants();
+ $constants = (new \ReflectionClass(KernelEvents::class))->getConstants();
131
132
if (false !== ($name = array_search($event, $constants, true))) {
133
return sprintf('KernelEvents::%s', $name);
134
}
135
136
return null;
137
138
-
139
- private function getKernelEventsConstants(): array
140
- {
141
- return (new \ReflectionClass(KernelEvents::class))->getConstants();
142
- }
143
0 commit comments