|
@@ -17,11 +17,11 @@ discard block |
|
|
block discarded – undo |
|
17
|
17
|
$app = new App; |
|
18
|
18
|
$app['debug'] = true; |
|
19
|
19
|
|
|
20
|
|
-$app['diagram.project.finder'] = $app->share(function ($app) { |
|
|
20
|
+$app['diagram.project.finder'] = $app->share(function($app) { |
|
21
|
21
|
return new ProjectFinder($app['db']); |
|
22
|
22
|
}); |
|
23
|
23
|
|
|
24
|
|
-$app['diagram.sequence.provider'] = $app->share(function ($app) { |
|
|
24
|
+$app['diagram.sequence.provider'] = $app->share(function($app) { |
|
25
|
25
|
return new SequenceProvider($app['db']); |
|
26
|
26
|
}); |
|
27
|
27
|
|
|
@@ -29,11 +29,11 @@ discard block |
|
|
block discarded – undo |
|
29
|
29
|
'twig.path' => __DIR__ . '/../resources/views', |
|
30
|
30
|
]); |
|
31
|
31
|
|
|
32
|
|
-$app->get('/{configuration}', function () use ($app) { |
|
|
32
|
+$app->get('/{configuration}', function() use ($app) { |
|
33
|
33
|
return $app['twig']->render('index.twig'); |
|
34
|
34
|
}); |
|
35
|
35
|
|
|
36
|
|
-$app->get('/api/{configuration}', function ($configuration) use ($app) { |
|
|
36
|
+$app->get('/api/{configuration}', function($configuration) use ($app) { |
|
37
|
37
|
list($organisation, $days, $scale, $project) = explode(',', $configuration); |
|
38
|
38
|
$projects = $app['diagram.project.finder']->getProjects($organisation, $project); |
|
39
|
39
|
|
Please login to merge, or discard this patch.