Start your All-Access Pass to unlock this challenge
How do you configure a class to serve as a factory in a Symfony application?
By using the constructor option in the service definition. The 1st argument is the factory class and the 2nd is the method to call.
constructor
By specifying the factory option in the service definition. The 1st argument is the factory class and the 2nd is the method to call.
factory
By specifying the factory option in the service definition. The 1st argument is the method to call and the 2nd is the factory class.
By using the constructor option in the service definition. The 1st argument is the method to call and the 2nd is the factory class.