S
S
symnoob2018-12-17 19:15:46
symfony
symnoob, 2018-12-17 19:15:46

How to correctly register your service.yaml in a bundle in Symfony4?

Good afternoon
Can anyone tell me how to correctly register my service.yaml in the bundle?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
Flying, 2018-12-17
@symnoob

This is described in the Symfony documentation . In short, there are two ways - by including the configuration file directly (recommended only for "internal" configuration files) and by writing a bundle extension (recommended for bundles). If you have a bundle that is external to the application, then write bundle extension, it has everything you need to connect configuration files.

A
ArthurAm, 2018-12-17
@ArthurAm

If the question is about the path, then it is written as standard here:
/Имя_Вашего_Бандла/Resources/config/services.yaml

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question