Skip to content

Commit

Permalink
Fixed tagging array service as swap.service
Browse files Browse the repository at this point in the history
  • Loading branch information
denlapaev committed Feb 2, 2018
1 parent 594487c commit 978dabd
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 978dabd

Please sign in to comment.