Skip to content
This repository was archived by the owner on Feb 6, 2020. It is now read-only.

Commit 47b818f

Browse files
committed
Microoptimization
1 parent e325179 commit 47b818f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/ServiceManager.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,16 +248,14 @@ protected function configure(array $config)
248248
: []);
249249
$this->shared = (isset($config['shared']) ? $config['shared'] : []) + $this->shared;
250250
$this->aliases = (isset($config['aliases']) ? $config['aliases'] : []) + $this->aliases;
251-
$this->lazyServices = array_merge_recursive($this->lazyServices, isset($config['lazy_services'])
252-
? $config['lazy_services']
253-
: []);
254251
$this->sharedByDefault = isset($config['shared_by_default'])
255252
? $config['shared_by_default']
256253
: $this->sharedByDefault;
257254

258255
// If lazy service configuration was provided, reset the lazy services
259256
// delegator factory.
260257
if (isset($config['lazy_services']) && ! empty($config['lazy_services'])) {
258+
$this->lazyServices = array_merge_recursive($this->lazyServices, $config['lazy_services']);
261259
$this->lazyServicesDelegator = null;
262260
}
263261

0 commit comments

Comments
 (0)