Skip to content

Commit c1ba5a5

Browse files
authored
Merge pull request #7 from driftphp/feature/some-fixes
Fixed readme link
2 parents 88d5276 + e1ec2c5 commit c1ba5a5

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

DependencyInjection/CompilerPass/BusCompilerPass.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,8 @@ private function createInMemoryAsyncAdapter(ContainerBuilder $container)
389389
new Reference('reactphp.event_loop'),
390390
])
391391
);
392+
393+
$container->setAlias(InMemoryAdapter::class, AsyncAdapter::class)->setPublic(true);
392394
}
393395

394396
/**

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Tactician, adding some adapters as well for async commands.
88

99
Some first steps for you!
1010

11-
- [Go to DOCS](https://driftphp.io/#/?id=bus-bundle)
11+
- [Go to DOCS](https://driftphp.io/#/?id=the-command-bus)
1212

1313
or
1414

Tests/Async/InMemoryAsyncTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
namespace Drift\CommandBus\Tests\Async;
1717

18+
use Drift\CommandBus\Async\InMemoryAdapter;
19+
1820
/**
1921
* Class FilesystemAsyncAdapterTest.
2022
*/
@@ -30,4 +32,12 @@ protected static function getAsyncConfiguration(): array
3032
'in_memory' => [],
3133
];
3234
}
35+
36+
/**
37+
* Test that inmemory async adapter is public.
38+
*/
39+
public function testAdapterIsPublic()
40+
{
41+
$this->assertInstanceOf(InMemoryAdapter::class, $this->get(InMemoryAdapter::class));
42+
}
3343
}

0 commit comments

Comments
 (0)