Skip to content

Commit

Permalink
Deprecate services related to MogileFS filesystem adapter (#1841)
Browse files Browse the repository at this point in the history
  • Loading branch information
phansys committed Oct 14, 2020
1 parent 2110cea commit 9145b5b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions UPGRADE-3.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ UPGRADE 3.x
UPGRADE FROM 3.x to 3.x
=======================

### MogileFS filesystem adapter is deprecated

The services `sonata.media.adapter.filesystem.mogilefs`, `sonata.media.filesystem.mogilefs`
and the configuration node "sonata_media.filesystem.mogilefs" are deprecated.

### Configuration node "sonata_media.filesystem.s3.sdk_version"

The configuration node "sonata_media.filesystem.s3.sdk_version" is deprecated. The
Expand Down
4 changes: 4 additions & 0 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,10 @@ private function addFilesystemSection(ArrayNodeDefinition $node): void
->end()

->arrayNode('mogilefs')
->setDeprecated(...$this->getBackwardCompatibleArgumentsForSetDeprecated(
'The node "%node%" is deprecated and will be removed in version 4.0.',
'3.x'
))
->children()
->scalarNode('domain')->isRequired()->end()
->arrayNode('hosts')
Expand Down
2 changes: 2 additions & 0 deletions src/Resources/config/gaufrette.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<argument type="service" id="logger"/>
</service>
<service id="sonata.media.adapter.filesystem.mogilefs" class="Gaufrette\Adapter\MogileFS">
<deprecated>The "%service_id%" service is deprecated since sonata-project/media-bundle 3.x and will be removed in version 4.0.</deprecated>
<argument/>
<argument/>
</service>
Expand All @@ -41,6 +42,7 @@
<argument/>
</service>
<service id="sonata.media.filesystem.mogilefs" class="Gaufrette\Filesystem">
<deprecated>The "%service_id%" service is deprecated since sonata-project/media-bundle 3.x and will be removed in version 4.0.</deprecated>
<argument type="service" id="sonata.media.adapter.filesystem.mogilefs"/>
</service>
<service id="sonata.media.filesystem.ftp" class="Gaufrette\Filesystem">
Expand Down

0 comments on commit 9145b5b

Please sign in to comment.