Skip to content

Commit

Permalink
Merge pull request #1 from daniel-dgi/example-service
Browse files Browse the repository at this point in the history
Using app->share in TransactionService.
  • Loading branch information
DiegoPino committed Jan 4, 2016
2 parents 2a0efc3 + 4b84572 commit d733150
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/TransactionService/src/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

$app['debug'] = true;

$app['fedora'] = function () use ($app) {
$app['fedora'] = $app->share(function () {
return FedoraApi::create('http://127.0.0.1:8080/fcrepo/rest');
};
});

/**
* Convert returned Guzzle responses to Symfony responses.
Expand Down

0 comments on commit d733150

Please sign in to comment.