@@ 33-39 (lines=7) @@ | ||
30 | return new ArrayConfiguration($app['jira.config']); |
|
31 | }); |
|
32 | ||
33 | $app['jira.rest.service.builder'] = $app->protect(function($serviceName) use ($app) { |
|
34 | if(class_exists($serviceName)) { |
|
35 | return new $serviceName($app['jira.rest.configuration'], $app['jira.rest.transport'], $app['logger']); |
|
36 | } |
|
37 | ||
38 | throw new \Exception('Service ' . $serviceName .' not found'); |
|
39 | }); |
|
40 | ||
41 | $app['jira.rest.issue'] = $app->share(function() use ($app) { |
|
42 | $className = '\JiraRestApi\Issue\IssueService'; |
@@ 34-40 (lines=7) @@ | ||
31 | return new ArrayConfiguration($app['jira.config']); |
|
32 | }; |
|
33 | ||
34 | $app['jira.rest.service.builder'] = $app->protect(function($serviceName) use ($app) { |
|
35 | if(class_exists($serviceName)) { |
|
36 | return new $serviceName($app['jira.rest.configuration'], $app['jira.rest.transport'], $app['logger']); |
|
37 | } |
|
38 | ||
39 | throw new \Exception('Service ' . $serviceName .' not found'); |
|
40 | }); |
|
41 | ||
42 | $app['jira.rest.issue'] = function() use ($app) { |
|
43 | $className = '\JiraRestApi\Issue\IssueService'; |