I want to read any parameter settings since file "validation.yml", but when trying to do is not interpreted.
Example:
In PHP would get the parameter "locale" as follows:
$locate = $this->container->getParameter('locale');
When I try to do the same in the file "validation.yml"
# validation.yml
App\LoginBundle\Validations\Login:
properties:
field:
- NotBlank:
message: "%locale%"
The visible result is literally: %locale%
Any idea?