Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaking change: refactor for grpc client #37

Merged
merged 31 commits into from
Feb 4, 2021
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
c941638
Use DI for deserialization
withinboredom Jan 29, 2021
fafa385
Refactor serialization
withinboredom Jan 30, 2021
c2e982c
Get state working
withinboredom Jan 30, 2021
26bd1e3
Add transactional state
withinboredom Jan 30, 2021
8059b31
Actor state updated
withinboredom Jan 30, 2021
aff004a
Get actors working
withinboredom Jan 30, 2021
cd3ff78
Reformat all
withinboredom Jan 30, 2021
37a8f1a
Get almost everything working
withinboredom Jan 30, 2021
18aa387
Update runtime
withinboredom Jan 30, 2021
397edb7
Fix generators
withinboredom Jan 30, 2021
dd1427a
Clean things up
withinboredom Jan 30, 2021
55a1c3f
Add actor endpoints
withinboredom Jan 31, 2021
7be27c9
Get actor integration tests working
withinboredom Jan 31, 2021
9d29d83
Test cloud events and state
withinboredom Jan 31, 2021
9ee9f5a
Get all integration tests to pass
withinboredom Feb 1, 2021
dad8407
Remove now-defunct runtime
withinboredom Feb 1, 2021
df2f563
Cleaning up
withinboredom Feb 1, 2021
cddff4f
Update unit tests
withinboredom Feb 1, 2021
0ff3af9
add more tests
withinboredom Feb 1, 2021
3b8b980
Start wiring up configs
withinboredom Feb 2, 2021
88d56c3
Update readme and config
withinboredom Feb 2, 2021
ca1509f
Fix some minor issues
withinboredom Feb 2, 2021
19010f5
Allow pure attribute in tests
withinboredom Feb 2, 2021
3963154
port is a string
withinboredom Feb 2, 2021
7cf3552
Update the docs
withinboredom Feb 2, 2021
daa77ad
Add run function
withinboredom Feb 2, 2021
30c388c
make sure default value is last in the chain
withinboredom Feb 2, 2021
e1b080d
Make parameters optional
withinboredom Feb 2, 2021
27bf4b3
ensure a request exists
withinboredom Feb 2, 2021
5f15637
Fix deserializer instantiating a weird obj
withinboredom Feb 2, 2021
8f32790
optimizations
withinboredom Feb 3, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
optimizations
withinboredom committed Feb 3, 2021
commit 8f32790b2eee59acfa0acab147c07f2d31d31d51
2 changes: 1 addition & 1 deletion docs/getting-started.md
Original file line number Diff line number Diff line change
@@ -50,7 +50,7 @@ return [
'dapr.actors.drain_enabled' => null,

// you shouldn't have to change this, but the setting is here if you need to
'dapr.port' => env('DAPR_HTTP_PORT', 3500),
'dapr.port' => env('DAPR_HTTP_PORT', '3500'),

// add any custom serialization routines here
'dapr.serializers.custom' => [],
7 changes: 7 additions & 0 deletions src/config.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
<?php

use Dapr\Actors\ActorConfig;
use Dapr\Actors\ActorProxy;
use Dapr\Actors\ActorRuntime;
use Dapr\Actors\Generators\ProxyFactory;
use Dapr\DaprClient;
use Dapr\Deserialization\DeserializationConfig;
use Dapr\Deserialization\Deserializer;
use Dapr\Deserialization\IDeserializer;
use Dapr\PubSub\Publish;
use Dapr\PubSub\Subscriptions;
use Dapr\Serialization\ISerializer;
use Dapr\Serialization\SerializationConfig;
@@ -62,8 +65,12 @@
'deserializers',
get('dapr.deserializers.custom')
),
ActorProxy::class => autowire(),
Publish::class => autowire()->constructorParameter('pubsub', get('dapr.pubsub.default')),
ActorRuntime::class => autowire(),

// default application settings
'dapr.pubsub.default' => 'pubsub',
'dapr.actors.proxy.generation' => ProxyFactory::GENERATED,
'dapr.subscriptions' => [],
'dapr.actors' => [],