Download the PHP package sylius-labs/sylius-1-11-shim-bundle without Composer
On this page you can find all versions of the php package sylius-labs/sylius-1-11-shim-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sylius-labs/sylius-1-11-shim-bundle
More information about sylius-labs/sylius-1-11-shim-bundle
Files in sylius-labs/sylius-1-11-shim-bundle
Package sylius-1-11-shim-bundle
Short Description Adds some functionalities from Sylius 1.11 to Sylius 1.12 and above
License MIT
Informations about the package sylius-1-11-shim-bundle
Sylius 1.11 Shim Bundle
âī¸ Installation
-
Require the bundle with composer:
- Add the bundle to your
config/bundles.php
file:
đ Usage
Legacy Behat API Platform client
Sylius 1.12 came with a refactored API Platform client for Behat tests. This may lead to harder supporting of Sylius 1.11 and 1.12 in the same time. To make it easier, we've created a legacy client that can be used in plugins supporting Sylius 1.11 and 1.12.
âšī¸
Sylius1_11\Behat\Client\*
classes are suitable for both 1.12 and earlier versions of Sylius.
- For
1.11
and earlier compatibility, usesylius.behat.api_platform_client.legacy
insteadsylius.behat.api_platform_client
- All
1.11
and earliersylius.behat.api_platform_client.*
services are again available to use Sylius\Behat\Client\ApiClientInterface
from Sylius 1.12 became incompatible withSylius\Behat\Client\ApiClientInterface
from Sylius 1.11 and earlier. To make it compatible, useSylius1_11\Behat\Client\ApiClientInterface
insteadSylius\Behat\Client\ApiPlatformClient
from Sylius 1.12 became incompatible withSylius\Behat\Client\ApiPlatformClient
from Sylius 1.11 and earlier. To make it compatible, useSylius1_11\Behat\Client\ApiPlatformClient
insteadSylius\Behat\Client\RequestInterface
from Sylius 1.12 became incompatible withSylius\Behat\Client\RequestInterface
from Sylius 1.11 and earlier. To make it compatible, useSylius1_11\Behat\Client\RequestInterface
insteadSylius\Behat\Client\Request
from Sylius 1.12 became incompatible withSylius\Behat\Client\Request
from Sylius 1.11 and earlier. To make it compatible, useSylius1_11\Behat\Client\Request
instead
Restore sylius.behat.context.hook.email_spool
service
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.
đ Examples
Already using one of services with changed signatures.
Just replace Sylius
with Sylius1_11
. All services with changed signatures has been aliased to this scheme of naming.
Having an API Client for a custom resource
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
.