P
P
parovozik2282019-09-18 10:18:24
symfony
parovozik228, 2019-09-18 10:18:24

How to organize routing inside a Bundle?

What is the correct way to write route configs in a Symfony 4 bundle, so that when installing the bundle through the composer, there is no need to manually add the file to config/routes?
For example, load yaml directly from the bundle with the content:
user_routes:
resource: ../../Controller/*
type: annotation

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Derepko, 2019-09-18
@parovozik228

https://github.com/symfony/recipes/tree/master/sym...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question