Use variable to avoid multiple calls of $this->getServiceContainer()

Change-Id: If8ace28a7061e440801f0fea1925e294fa4e6b90
This commit is contained in:
Fomafix 2024-03-16 11:32:30 +00:00
parent dfdbb1d686
commit fe94aa9e2e

View file

@ -379,10 +379,11 @@ EOF;
$this->fatalError( 'No matching namespaces.' );
}
$hookHelper = new HookHelper( $this->getServiceContainer()->getHookContainer() );
$services = $this->getServiceContainer();
$hookHelper = new HookHelper( $services->getHookContainer() );
$search = new Search(
$this->getServiceContainer()->getMainConfig(),
$this->getServiceContainer()->getDBLoadBalancerFactory()
$services->getMainConfig(),
$services->getDBLoadBalancerFactory()
);
foreach ( $this->target as $index => $target ) {
$replacement = $this->replacement[$index];