Skip to content

Commit

Permalink
Remove dev dependency on sonata-project/formatter-bundle (#1836)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorrit authored Oct 9, 2020
1 parent 53576fd commit 5a8de01
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 13 deletions.
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@
"sonata-project/block-bundle": "^3.17",
"sonata-project/datagrid-bundle": "^2.5",
"sonata-project/doctrine-orm-admin-bundle": "^3.14",
"sonata-project/formatter-bundle": "^3.4 || ^4.0",
"sonata-project/notification-bundle": "^3.3",
"sonata-project/seo-bundle": "^2.5",
"symfony/browser-kit": "^4.4 || ^5.1",
Expand Down
4 changes: 0 additions & 4 deletions src/DependencyInjection/SonataMediaExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@ public function load(array $configs, ContainerBuilder $container)
$loader->load('consumer.xml');
}

if (isset($bundles['SonataFormatterBundle'])) {
$loader->load('formatter.xml');
}

if (isset($bundles['SonataBlockBundle'])) {
$loader->load('block.xml');
}
Expand Down
8 changes: 0 additions & 8 deletions src/Resources/config/formatter.xml

This file was deleted.

3 changes: 3 additions & 0 deletions src/Resources/config/twig.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@
<service id="sonata.media.twig.global" class="Sonata\MediaBundle\Twig\GlobalVariables">
<argument type="service" id="service_container"/>
</service>
<service id="sonata.media.formatter.twig" class="Sonata\MediaBundle\Twig\Extension\FormatterMediaExtension" public="true">
<argument type="service" id="sonata.media.twig.extension"/>
</service>
</services>
</container>

0 comments on commit 5a8de01

Please sign in to comment.