Skip to content

Commit

Permalink
feat: Added deprecation notices about RZ\Roadiz\CoreBundle\Xlsx ser…
Browse files Browse the repository at this point in the history
…vices
  • Loading branch information
ambroisemaupate committed Jul 11, 2024
1 parent f8092dc commit a9af918
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lib/RoadizCoreBundle/config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ services:
shared: false
public: true

RZ\Roadiz\CoreBundle\Xlsx\:
resource: '../src/Xlsx/'
deprecated:
message: 'The "%service_id%" service is deprecated and will be removed in Roadiz 2.4. Use CSV serialization instead.'
package: roadiz/core-bundle
version: '2.3.19'

RZ\Roadiz\CoreBundle\Document\MediaFinder\YoutubeEmbedFinder:
tags: [ { name: 'roadiz_core.media_finder', platform: 'youtube' } ]
RZ\Roadiz\CoreBundle\Document\MediaFinder\VimeoEmbedFinder:
Expand Down Expand Up @@ -348,15 +355,15 @@ services:
# Recreate manager for each usage
shared: false
deprecated:
message: 'The "%service_id%" service is deprecated and will be removed in Roadiz 3.0. Use RZ\Roadiz\CoreBundle\Mailer\EmailManagerFactory instead.'
message: 'The "%service_id%" service is deprecated and will be removed in Roadiz 2.4. Use RZ\Roadiz\CoreBundle\Mailer\EmailManagerFactory instead.'
package: roadiz/core-bundle
version: '2.3.18'

RZ\Roadiz\CoreBundle\Mailer\ContactFormManager:
# Recreate manager for each usage
shared: false
deprecated:
message: 'The "%service_id%" service is deprecated and will be removed in Roadiz 3.0. Use RZ\Roadiz\CoreBundle\Mailer\ContactFormManagerFactory instead.'
message: 'The "%service_id%" service is deprecated and will be removed in Roadiz 2.4. Use RZ\Roadiz\CoreBundle\Mailer\ContactFormManagerFactory instead.'
package: roadiz/core-bundle
version: '2.3.18'

Expand Down
1 change: 1 addition & 0 deletions lib/RoadizCoreBundle/src/Xlsx/AbstractXlsxSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Symfony\Contracts\Translation\TranslatorInterface;

/**
* @deprecated XLSX serialization is deprecated and will be removed in next major version.
* Define basic serialize operations for XLSX data type.
*/
abstract class AbstractXlsxSerializer implements SerializerInterface
Expand Down
1 change: 1 addition & 0 deletions lib/RoadizCoreBundle/src/Xlsx/NodeSourceXlsxSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
use Symfony\Contracts\Translation\TranslatorInterface;

/**
* @deprecated XLSX serialization is deprecated and will be removed in next major version.
* XLSX Serialization handler for NodeSource.
*/
class NodeSourceXlsxSerializer extends AbstractXlsxSerializer
Expand Down
1 change: 1 addition & 0 deletions lib/RoadizCoreBundle/src/Xlsx/SerializerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace RZ\Roadiz\CoreBundle\Xlsx;

/**
* @deprecated XLSX serialization is deprecated and will be removed in next major version.
* EntitySerializer that implements simple serialization/deserialization methods.
*/
interface SerializerInterface
Expand Down
3 changes: 3 additions & 0 deletions lib/RoadizCoreBundle/src/Xlsx/XlsxExporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
use Symfony\Contracts\Translation\TranslatorInterface;

/**
* @deprecated XLSX serialization is deprecated and will be removed in next major version.
*/
class XlsxExporter
{
protected TranslatorInterface $translator;
Expand Down

0 comments on commit a9af918

Please sign in to comment.