Questions tagged [Symfony] (1561)

1
answer

How to configure bundle in your?

For example LiipImagineBundle - he has a lot of settings in its own configuration register. I want to make a separate bundle in which almost everything should be already configured. How to do it correctly? 1. To import the config file from your bundle into the application. 2. $container->prependExtensionConfig($name, $...
Zander_Grah asked April 19th 20 at 12:41
1
answer

Symfony 4 — How to solve the problem with the Entity in the Bundle?

Hi all, There is a challenge wanted to create a Symfony Bundle. For example, Bundle animals, there is the substance of Animals. This bundle should work in different projects. In one project the essence of the Animals in itself, in other projects the essence of Animals should have different associations and relationship M...
krystina.Conn asked April 19th 20 at 12:38
2
answers

Versioning API in Symfony?

Colleagues, good afternoon! Develop a small project. Write API. At this stage, think how it would be possible to implement different API versions. We all know for what version and what will result if you do not implement this feature in the project. The question is finding the best practices. Expect several options. 1. ...
samantha.Hue asked April 19th 20 at 12:30
0
answer

Error configuration fos_user bundle Symfony 4.4?

Trying to install FOSUserBundle integration from the Sonata Project at the official documentation as well and tried different guides but always the same error : There is no extension able to load the configuration for "fos_user". The documentation says to create the file config/packages/fos_user.yaml with the following cont...
Murphy.Wilderman asked April 19th 20 at 12:29
1
answer

Symfony — how can I display the difference between two strings?

Hi All, is it possible to display the difference between the two lines? what bundle or there is a feature filter for Twig? tobish otobrazit diff string, well in Bitbucket...
craig39 asked April 19th 20 at 12:28
0
answer

How to perform a preliminary assessment of the size of the file?

How to perform a preliminary assessment of the size of the generated file through the dumpFile class Symfony\Component\Filesystem? In the class itself such options are not noticed. Or still have to create a temporary file, and look how much he took? Code: use Symfony\Component\Filesystem\Filesystem; $filesystem = new File...
Loraine asked April 19th 20 at 12:21
1
answer

How to use a bundle inside bundle?

To create a single bundle and to connect it inside several other bundles. Then in a new project to mount a single parent bundle. How to do it? In coprotheres bundles listed as dependencies. But they also need to connect inside the bundle?
gunner asked April 19th 20 at 12:06
1
answer

Symfony 3.4 — how to write a Listener that is called only when writing changes to the Database?

Hi All, how to write a Listener that is called only when recording changes in the Database. It is necessary to intercept and modify, but only when there is Update in the database. not in the Insert
itzel_Kreiger40 asked April 19th 20 at 12:05
1
answer

Where to do a redirect?

Hello! I need to check if the user has not filled the data then send it to the page fill. What would he not moved, it needs to be placed on the page fill in the data. Where you want to do a redirect? I have tried using listeners, but apparently the students go one after another and because of this, not redirects. Check to m...
luciano.Thompson asked April 18th 20 at 13:24
1
answer

Use ElasticsearchLogstashHandler inside Docker?

there is such orders: https://jolicode.com/blog/how-to-visualize-symfony... Briefly - it tells how to raise container 2 with kibana and elasticsearch, in the Symphony to connect ElasticsearchLogstashHandler(which comes along with a monologue). These two container + container Symfony, merging one network om. But there is a ...
Cecilia_Lowe96 asked April 18th 20 at 13:18