mirror of https://github.com/dapr/docs.git
parent
a908b210b1
commit
4d3822f367
|
|
@ -396,7 +396,7 @@ You're up and running! Both Dapr and your app logs will appear here.
|
||||||
To batch load and save state with PHP, just create a "Plain Ole' PHP Object" (POPO) and annotate it with
|
To batch load and save state with PHP, just create a "Plain Ole' PHP Object" (POPO) and annotate it with
|
||||||
the StateStore annotation.
|
the StateStore annotation.
|
||||||
|
|
||||||
Let's update the `state-example.php` file:
|
Update the `state-example.php` file:
|
||||||
|
|
||||||
```php
|
```php
|
||||||
<?php
|
<?php
|
||||||
|
|
@ -537,7 +537,7 @@ Transactional state is supported by extending `TransactionalState` base object w
|
||||||
object via setters and getters to provide a transaction. Before you created your own transactional object,
|
object via setters and getters to provide a transaction. Before you created your own transactional object,
|
||||||
but now you'll ask the Dependency Injection framework to build one for you.
|
but now you'll ask the Dependency Injection framework to build one for you.
|
||||||
|
|
||||||
Let's modify the `state-example.php` file again:
|
Modify the `state-example.php` file again:
|
||||||
|
|
||||||
```php
|
```php
|
||||||
<?php
|
<?php
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue