Ability to inject a parameter into an EntityRepository without an extra service

This allows to inject parameters into an EntityRepository without a service by doing:
<?php

namespace Acme\MyBundle\Repository;

use JMS\DiExtraBundle\Annotation as DI;
use Doctrine\ORM\EntityRepository;

class MyRepository extends EntityRepository
{
    private $myVar;
    
    /**
     * @DI\InjectParams({
     *     "myVar" = @DI\Inject("%my.parameter%")
     * })
     */
    public function setMyVar($myVar)
    {
        $this->myVar = $myVar;
    }


And in the config.yml
parameters:
    my.parameter = any_value