Skip to content

Commit 7f3d0f6

Browse files
committed
Faster AutowiredAttributeServicesExtension->processParameters()
1 parent 86e604c commit 7f3d0f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/DependencyInjection/AutowiredAttributeServicesExtension.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ private function processParameters(string $className, ServiceDefinition $definit
135135
{
136136
$builder = $this->getContainerBuilder();
137137
foreach ($autowiredParameters as $autowiredParameter) {
138+
if ($autowiredParameter->method === '' || $autowiredParameter->method[0] !== '_') {
139+
continue;
140+
}
141+
138142
if (strcasecmp($autowiredParameter->method, '__construct') !== 0) {
139143
continue;
140144
}

0 commit comments

Comments
 (0)