Skip to content

Commit f724487

Browse files
committed
inline extra method
1 parent 4556854 commit f724487

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Maker/MakeSubscriber.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,17 +127,12 @@ public function configureDependencies(DependencyBuilder $dependencies): void
127127

128128
private function getEventConstant(string $event): ?string
129129
{
130-
$constants = $this->getKernelEventsConstants();
130+
$constants = (new \ReflectionClass(KernelEvents::class))->getConstants();
131131

132132
if (false !== ($name = array_search($event, $constants, true))) {
133133
return sprintf('KernelEvents::%s', $name);
134134
}
135135

136136
return null;
137137
}
138-
139-
private function getKernelEventsConstants(): array
140-
{
141-
return (new \ReflectionClass(KernelEvents::class))->getConstants();
142-
}
143138
}

0 commit comments

Comments
 (0)