nayzo/NzoUrlEncryptorBundle

Problem with dependency injection in version 1.7

Closed this issue · 1 comments

There is a problem with the latest release 1.7. After updating form 1.6 to 1.7 and starting the symfony console I get the following error:

[Symfony\Component\DependencyInjection\Exception\InvalidArgumentException]
"'Nzo\\UrlEncryptorBundle\\Annotations\\AnnotationResolver
        '" is not a valid class name for the "nzo.annotation_resolver" service.

The problem is an invalid line break before the closing </parameter> in Resources/config/services.xml:

 <parameters>
    <parameter key="nzo_url_encryptor.class">Nzo\UrlEncryptorBundle\UrlEncryptor\UrlEncryptor</parameter>
    <parameter key="encryptor_extension.class">Nzo\UrlEncryptorBundle\Twig\UrlEncryptorExtension</parameter>
    <parameter key="encryptor_annotation_resolver.class">Nzo\UrlEncryptorBundle\Annotations\AnnotationResolver
    </parameter>
</parameters>

Introduced in this commit

nayzo commented

👍
Fixed: #11
It's weird though, this bug was introduced by my IDE code formatting !!