diff --git a/modules/concepts/services/_index.md b/modules/concepts/services/_index.md index 3ebba045b7..77b9109d44 100644 --- a/modules/concepts/services/_index.md +++ b/modules/concepts/services/_index.md @@ -467,11 +467,13 @@ in admin or front. Be careful and always keep in mind in which context/environme Here is a quick summary so that you know where you should define your services: -| Definition file | Symfony Container | Front Legacy Container | Admin Legacy Container | Available services | -| ------------------------- |:------------------------- |:-------------------------------- |:---------------------- |:-------------------------------------------------------------------------- | -| config/services.yml | Yes | No | No | All symfony components and PrestaShopBundle services | -| config/admin/services.yml | Yes | No | Yes | Doctrine, services defined in `/config/services/admin` folder | -| config/front/services.yml | Yes | Yes | No | Doctrine, services defined in `/config/services/front` folder | +| Definition file | Symfony Container | Front Legacy Container | Admin Legacy Container | Webservice Container | Available services | +| --------------------------- | :---------------: | :--------------------: | :--------------------: | :------------------: | -------------------------------------------------------------------------- | +| `config/services.yml` | Yes | No | No | No | All Symfony components and `PrestaShopBundle` services | +| `config/admin/services.yml` | Yes | No | Yes | No | Doctrine, services defined in `/config/services/admin` folder | +| `config/front/services.yml` | Yes | Yes | No | No | Doctrine, services defined in `/config/services/front` folder | +| `config/websrvice/services.yml` | Yes | Yes | No | No | Doctrine, services defined in `/config/webservice/front` folder | + ### Define a service on both front and admin @@ -515,3 +517,9 @@ imports: imports: - { resource: ../common.yml } ``` + +```yaml +# yourmodule/config/webservice/services.yml +imports: + - { resource: ../common.yml } +```