PrestaShop / PrestaShop/docs

Improve documentation about decorating services

Open
#1,599 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

improvement
Dominant language
Scala
Stars
136
Forks
555
Avg merge
4d 14h
Merged PRs (30d)
4

Description

  • add a notice that you can ignore decorating non-existing services, which should be helpful if you work on a module that has to work on many core versions, details below
  • provide an example module

Fail silently:
decoration_on_invalid: ignore

details:
https://symfony.com/doc/4.4/service_container/service_decoration.html#control-the-behavior-when-the-decorated-service-does-not-exist

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the service decoration documentation and the linked Symfony section on handling non-existing decorated services. Add a notice covering decoration_on_invalid: ignore and provide an example module, completing both checklist items and ensuring the documented behavior is clear.

Written by the indexing model from the issue text.

Assessment

Tech stack
symfony
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.