-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathservices.php
More file actions
31 lines (24 loc) · 1001 Bytes
/
services.php
File metadata and controls
31 lines (24 loc) · 1001 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
function createServices(\DI\Container $container, array $config) {
$container->set('AuthenticationService', function ($c) use ($config) {
return new \Logigator\Service\AuthenticationService($c, $config);
});
$container->set('DbalService', function ($c) use ($config) {
return new \Logigator\Service\DbalService($c, $config);
});
$container->set('ProjectService', function ($c) use ($config) {
return new \Logigator\Service\ProjectService($c, $config);
});
$container->set('SmtpService', function ($c) use ($config) {
return new \Logigator\Service\SmtpService($c, $config);
});
$container->set('UserService', function ($c) use ($config) {
return new \Logigator\Service\UserService($c, $config);
});
$container->set('ConfigService', function ($c) use ($config) {
return new \Logigator\Service\ConfigService($c, $config);
});
$container->set('ImageService', function ($c) use ($config) {
return new \Logigator\Service\ImageService($c, $config);
});
}