dennisberg91 / my-test-bundle
Test bundle to practice making a Symfony bundle.
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 1
Type:symfony-bundle
Requires
- php: ^7.4
- symfony/http-kernel: ^5.2
This package is not auto-updated.
Last update: 2024-05-12 04:59:00 UTC
README
This repository contains an ultra slim bundle. It serves as a basis for practicing certain Symfony bundle development skills.
By completing the tasks below
Tasks
-
Add service configuration for
MessageBuilder
: theMessageBuilder
does not autowire out-of-the-box.- Why?
- Can you solve it?
-
Some variables need to be different on each environment (think of database credentials for example). This is most commonly done by using environment variables.
- Now that
MessageBuilder
autowires, can you make it so that it accepts configuration from an environment variable when implemented in an app?
- Now that
-
Every bundle should have unit tests, ensuring the functionality provided is proper and works. This is especially important for libraries or projects that are under constant development by multiple people.
- Where do you put a unit test in a bundle?
- What test would you write for this bundle?