mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
Merge branch '1.11' into 1.12
* 1.11: Update docs/cookbook/deployment/cron-jobs.rst [docs]Recommend cron jobs values [API] Remove mapping path from configuration
This commit is contained in:
commit
1c678bbb71
8 changed files with 8 additions and 4 deletions
|
|
@ -15,6 +15,13 @@ Sylius has two vital, predefined commands designed to be run as cron jobs on you
|
|||
* ``sylius:remove-expired-carts`` - to remove carts that have expired after desired time
|
||||
* ``sylius:cancel-unpaid-orders`` - to cancel orders that are still unpaid after desired time
|
||||
|
||||
The recommended configuration
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
0 */6 * * * sh php bin/console sylius:remove-expired-carts
|
||||
0 */6 * * * sh php bin/console sylius:cancel-unpaid-orders
|
||||
|
||||
How to configure a CRON job ?
|
||||
-----------------------------
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ sylius_api:
|
|||
'%sylius.model.product.class%':
|
||||
operations:
|
||||
shop_get: ~
|
||||
|
||||
|
||||
api_platform:
|
||||
patch_formats:
|
||||
|
|
@ -46,8 +45,6 @@ api_platform:
|
|||
collection:
|
||||
pagination:
|
||||
client_items_per_page: true
|
||||
mapping:
|
||||
paths: ['%kernel.project_dir%/config/api_platform']
|
||||
|
||||
lexik_jwt_authentication:
|
||||
token_extractors:
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ api_platform:
|
|||
mapping:
|
||||
paths:
|
||||
- '%kernel.api_bundle_path%/Resources/config/api_resources'
|
||||
- '%kernel.project_dir%/config/api_resources'
|
||||
- '%kernel.project_dir%/config/api_platform'
|
||||
|
||||
sylius_api:
|
||||
enabled: '%env(bool:SYLIUS_API_ENABLED)%'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue