Skip to content

Commit

Permalink
Merge pull request #41 from denlapaev/denlapaev-patch-1
Browse files Browse the repository at this point in the history
Fixed tagging array service as swap.service
  • Loading branch information
florianv committed Feb 12, 2018
2 parents 594487c + 978dabd commit d8acb56
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/SwapServiceProvider.php
Expand Up @@ -91,9 +91,13 @@ private function registerServices(Container $app)

// The PhpArray service is a particular case
if ('array' === $name) {
return $app->singleton($serviceName, function () use ($config) {
$app->singleton($serviceName, function () use ($config) {
return new PhpArray($config);
});

$app->tag($serviceName, 'swap.service');

return;
}

// Process the regular services
Expand Down

0 comments on commit d8acb56

Please sign in to comment.