Skip to main content
6 events
when toggle format what by license comment
Apr 26, 2023 at 22:13 vote accept FrankieD
Apr 26, 2023 at 22:12 comment added FrankieD That did it. Thanks for clearing that up.
Apr 26, 2023 at 22:00 comment added 4uk4 For a container parameter you would need $container->getParameter(), but the create() method in your service class has no function, it's not used when the service is instantiated. The arguments in *.services.yml are the input of __construct() and it's no problem to feed __construct() with string literals.
Apr 26, 2023 at 21:39 comment added FrankieD Ah, makes sense! Honestly, I'm not sure how to get an unnamed argument. The documentation I've found on the get() method is fairly sparse, though it seems to expect a named argument. E.g. $container->get('cache.render'). How would I go about achieving this?
Apr 26, 2023 at 8:53 history edited 4uk4 CC BY-SA 4.0
added 105 characters in body
Apr 26, 2023 at 7:11 history answered 4uk4 CC BY-SA 4.0