fr
fr

Question from the Symfony 6 test

The class Foo exists is registered as a service only in the "dev" and "test" environment

Medium

Which statement is true?

#[When(env: 'dev')]
#[When(env: 'test')]
class Foo
{
}
Author: smaine milianniStatus: PublishedQuestion passed 1578 times
Edit
5
Community Evaluations
developer avatar
Auteur anonyme
27/11/2024
Les attributs #[When(env: 'dev')] et #[When(env: 'test')] indiquent que la classe Foo sera enregistrée comme service uniquement dans les environnements spécifiés (dev et test)
developer avatar
Incorrect answer
Auteur anonyme
28/11/2024
The correct answer is: The class Foo is public only in the “dev” and “test” environment.