Skip to content

Commit

Permalink
Drop annotations support
Browse files Browse the repository at this point in the history
  • Loading branch information
mpdude committed Apr 4, 2024
1 parent 98696c1 commit dbd6708
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 142 deletions.
5 changes: 5 additions & 0 deletions UPGRADING.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Upgrading Notes for webfactory/object-routing

# Version 2.0.0

* The `\JMS\ObjectRouting\Metadata\Driver\AnnotationDriver` and `\JMS\ObjectRouting\Annotation\ObjectRoute` classes have been removed.
* The `\JMS\ObjectRouting\Attribute\ObjectRoute` is now `final`.

# Version 1.7.0

* Using the `\JMS\ObjectRouting\Annotation\ObjectRoute` class to configure object routes either through annotations or as an attribute has been deprecated. Use the `\JMS\ObjectRouting\Attribute\ObjectRoute` attribute instead. Also, the `\JMS\ObjectRouting\Metadata\Driver\AnnotationDriver` has been deprecated.
34 changes: 0 additions & 34 deletions src/JMS/ObjectRouting/Annotation/ObjectRoute.php

This file was deleted.

3 changes: 1 addition & 2 deletions src/JMS/ObjectRouting/Attribute/ObjectRoute.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@

namespace JMS\ObjectRouting\Attribute;

/** @final */
#[\Attribute(\Attribute::IS_REPEATABLE | \Attribute::TARGET_CLASS)]
class ObjectRoute
final class ObjectRoute
{
/** @var string @Required */
public $type;
Expand Down
70 changes: 0 additions & 70 deletions src/JMS/ObjectRouting/Metadata/Driver/AnnotationDriver.php

This file was deleted.

This file was deleted.

0 comments on commit dbd6708

Please sign in to comment.