You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+37Lines changed: 37 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,3 +37,40 @@ To make it easier, we've created a legacy client that can be used in plugins sup
37
37
38
38
### Restore `sylius.behat.context.hook.email_spool` service
39
39
`sylius.behat.context.hook.email_spool` has been replace by `sylius.behat.context.hook.mailer`. This shim adds an alias pointing the old name to the new one.
40
+
41
+
## 📝 Examples
42
+
43
+
### Already using one of services with changed signatures.
44
+
45
+
Just replace `Sylius` with `Sylius1_11`. All services with changed signatures has been aliased to this scheme of naming.
46
+
47
+
```diff
48
+
use Behat\Behat\Context\Context;
49
+
-use Sylius\Behat\Client\ApiClientInterface;
50
+
use Sylius\Behat\Client\ResponseCheckerInterface;
51
+
use Sylius\Behat\Service\SharedStorageInterface;
52
+
use Sylius\LoyaltyPlugin\Domain\Model\CustomerInterface;
53
+
+use Sylius1_11\Behat\Client\ApiClientInterface;
54
+
use Webmozart\Assert\Assert;
55
+
56
+
final class ManagingLoyaltyContext implements Context
Replace `sylius.behat.api_platform_client` parent declaration with `sylius.behat.api_platform_client.legacy` and `Sylius\Behat\Client\ApiPlatformClient` class with `Sylius1_11\Behat\Client\ApiPlatformClient`.
0 commit comments