79220006

Date: 2024-11-24 12:04:02
Score: 0.5
Natty:
Report link

In modern Symfony applications it may be done using the following code:

public function __construct(
    #[Autowire('@@YourBundle/Resources/some_dir')]
    private readonly string $dir,
) {
}

Pay attention to the double @ sign it's not a typo.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alex Bacart