R
R
Roman2016-09-04 12:24:06
symfony
Roman, 2016-09-04 12:24:06

Symfony where to put your functions / classes?

Greetings to all, I am writing the first project on symphony, I ran into the fact that I don’t know where to put my custom functions (helpers) so that they are available from the entire application.
As for the classes, it’s clear here, we’re making our own bundle ... Which I already did for my MyController (additional layer) ...
As for simple functions, there is only one thought, to make a separate HelperBundle-type bundle to create thematic controllers and prescribe static controllers in them methods ...
But something tells me that I am writing a bicycle, so I want to ask knowledgeable people where to put such things for good?
Beaver everyone) Thank you ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OnYourLips, 2016-09-04
@ronik55

faced with the fact that I don’t know where to put my user functions (helpers) so that they are available from the entire application.
Group by application and make a service out of it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question