Symfony v.2 Flashcards

1
Q

Can you describe your experience with Symfony and the projects you have worked on using this framework?

A

I have over five years of experience working with Symfony, mainly developing scalable architectures, designing APIs, and implementing billing flows for mobile subscription services.
I built reusable services and created provider-specific handlers using Symfony’s dependency injection and service tagging to support various billing partners.
This work helped us onboard new telecom partners faster and scale our platform to serve users in multiple regions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you manage dependencies in a Symfony project?

A

I use Composer to manage dependencies. I try to keep all packages up to date and check for security issues. If there is a conflict between packages, I check the versions and fix it step by step to keep the project stable.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the key differences between Symfony 4 and Symfony 5?

A

Symfony 4 introduced Symfony Flex, which made managing dependencies and configuration much easier and more flexible. Symfony 5 improved performance, cleaned up old code, and removed deprecated features. It made the framework faster and more consistent for developers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Can you explain the concept of service containers in Symfony and how they are used?

A

In Symfony, a service container is a tool that helps manage and organize objects in the application. Instead of creating objects manually, Symfony creates and gives you the services you need.

For example, if I need to send an email or connect to the database, I don’t create the object myself. I just ask the container to give it to me. This makes the code cleaner and easier to test. I usually inject services into controllers or other classes using dependency injection.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the purpose of Symfony bundles, and how do you create a custom bundle?

A

Symfony bundles are modular packages of code that encapsulate specific functionality, making it easy to reuse and share across projects. To create a custom bundle, I define the bundle class, configure services, and register it in the application’s kernel.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly