-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathcontainer.php
More file actions
26 lines (21 loc) · 777 Bytes
/
Copy pathcontainer.php
File metadata and controls
26 lines (21 loc) · 777 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
<?php
use Fusio\Impl\Adapter\AdapterFinder;
use Fusio\Impl\Tests\Framework\Api\TypeHub\TestPublisher;
use PSX\Framework\Dependency\ContainerBuilder;
return ContainerBuilder::build(
__DIR__,
true,
static function () {
$configs = [
__DIR__ . '/vendor/psx/framework/resources/container.php',
__DIR__ . '/vendor/fusio/cli/resources/container.php',
__DIR__ . '/vendor/fusio/engine/resources/container.php',
__DIR__ . '/resources/container.php',
];
if (class_exists(TestPublisher::class)) {
$configs[] = __DIR__ . '/tests/test_container.php';
}
$configs = array_merge($configs, AdapterFinder::getFiles(__DIR__ . '/provider.php'));
return $configs;
},
);