Skip to content

Commit d8acb56

Browse files
authored
Merge pull request #41 from denlapaev/denlapaev-patch-1
Fixed tagging array service as swap.service
2 parents 594487c + 978dabd commit d8acb56

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/SwapServiceProvider.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,13 @@ private function registerServices(Container $app)
9191

9292
// The PhpArray service is a particular case
9393
if ('array' === $name) {
94-
return $app->singleton($serviceName, function () use ($config) {
94+
$app->singleton($serviceName, function () use ($config) {
9595
return new PhpArray($config);
9696
});
97+
98+
$app->tag($serviceName, 'swap.service');
99+
100+
return;
97101
}
98102

99103
// Process the regular services

0 commit comments

Comments
 (0)