@@ -467,11 +467,13 @@ in admin or front. Be careful and always keep in mind in which context/environme
467467
468468Here is a quick summary so that you know where you should define your services :
469469
470- | Definition file | Symfony Container | Front Legacy Container | Admin Legacy Container | Available services |
471- | ------------------------- |:------------------------- |:-------------------------------- |:---------------------- |:-------------------------------------------------------------------------- |
472- | config/services.yml | Yes | No | No | All symfony components and PrestaShopBundle services |
473- | config/admin/services.yml | Yes | No | Yes | Doctrine, services defined in `<PS_ROOT_DIR>/config/services/admin` folder |
474- | config/front/services.yml | Yes | Yes | No | Doctrine, services defined in `<PS_ROOT_DIR>/config/services/front` folder |
470+ | Definition file | Symfony Container | Front Legacy Container | Admin Legacy Container | Webservice Container | Available services |
471+ | --------------------------- | :--------------- : | :--------------------: | :--------------------: | :------------------: | -------------------------------------------------------------------------- |
472+ | `config/services.yml` | Yes | No | No | No | All Symfony components and `PrestaShopBundle` services |
473+ | `config/admin/services.yml` | Yes | No | Yes | No | Doctrine, services defined in `<PS_ROOT_DIR>/config/services/admin` folder |
474+ | `config/front/services.yml` | Yes | Yes | No | No | Doctrine, services defined in `<PS_ROOT_DIR>/config/services/front` folder |
475+ | `config/webservice/services.yml` | Yes | No | No | Yes | Doctrine, services defined in `<PS_ROOT_DIR>/config/webservice/front` folder |
476+
475477
476478# ## Define a service on both front and admin
477479
@@ -515,3 +517,9 @@ imports:
515517imports:
516518 - { resource: ../common.yml }
517519` ` `
520+
521+ ` ` ` yaml
522+ # yourmodule/config/webservice/services.yml
523+ imports:
524+ - { resource: ../common.yml }
525+ ` ` `
0 commit comments