Skip to content

Commit

Permalink
Fix deprecation of vm5_entity_translations.translation_loader service.
Browse files Browse the repository at this point in the history
Fix Form Type missing use.
Fix wrong Twig Extension definition
  • Loading branch information
Bozhidar Hristov committed Dec 4, 2017
1 parent b6411a6 commit 896b38b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/Form/Type/TranslationsType.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use Symfony\Component\Form\FormEvent;
use Symfony\Component\Form\FormEvents;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\PropertyAccess\PropertyAccessorInterface;
use VM5\EntityTranslationsBundle\Model\EditableTranslation;
use VM5\EntityTranslationsBundle\Model\Language;
use VM5\EntityTranslationsBundle\Model\Translatable;
Expand Down
6 changes: 2 additions & 4 deletions src/Resources/config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
<service id="vm5_entity_translations.translation_loader"
class="VM5\EntityTranslationsBundle\Translator"
public="true">
<deprecated>The "%service_id%" service is deprecated since 1.2 and will be removed in 2.0. Please use
vm5_entity_translations.translator instead.
</deprecated>
<deprecated>The "%service_id%" service is deprecated since 1.2 and will be removed in 2.0. Please use vm5_entity_translations.translator instead.</deprecated>
</service>

<service id="vm5_entity_translations.doctrine.translation_loader"
Expand All @@ -34,7 +32,7 @@
</service>

<service id="VM5\EntityTranslationsBundle\Twig\Extension\TranslationExtension"
class="VM5\EntityTranslationsBundle\Form\Type\TranslationsType"
class="VM5\EntityTranslationsBundle\Twig\Extension\TranslationExtension"
public="false">
<argument type="service" id="vm5_entity_translations.translator"/>
<argument type="service" id="property_accessor"/>
Expand Down

0 comments on commit 896b38b

Please sign in to comment.