Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resource route collection factory #987

Open
wants to merge 1 commit into
base: new-resource-loader
Choose a base branch
from

Conversation

loic425
Copy link
Member

@loic425 loic425 commented Feb 21, 2025

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Related tickets
License MIT

@loic425 loic425 marked this pull request as draft February 21, 2025 09:05
@loic425 loic425 force-pushed the resource-route-collection-factory branch from 66c90b2 to 444010d Compare February 21, 2025 09:11
@loic425 loic425 marked this pull request as ready for review February 21, 2025 09:17
use Symfony\Component\Routing\Route;
use Symfony\Component\Routing\RouteCollection;
use Webmozart\Assert\Assert;

trigger_deprecation('sylius/resource', '1.13', '"%s" is deprecated, use "%s" instead.', AttributesOperationRouteFactory::class, ResourceRouteCollectionFactory::class);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering if I should deprecate the service instead, cause maybe the user will not be able to remove that deprecation message.

@loic425 loic425 self-assigned this Feb 21, 2025
@loic425 loic425 force-pushed the resource-route-collection-factory branch 3 times, most recently from 0d67aae to 3603e04 Compare February 25, 2025 15:39
@@ -1,7 +1,11 @@
sylius_crud_routes:
resource: 'sylius.routing.loader.crud_routes_attributes'
type: service
#
#sylius_routes:
# resource: 'sylius.routing.loader.routes_attributes'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we have to deprecate the service

@loic425 loic425 force-pushed the resource-route-collection-factory branch from 3603e04 to 85434a6 Compare February 25, 2025 15:41
@loic425 loic425 force-pushed the resource-route-collection-factory branch from 85434a6 to e55b412 Compare February 25, 2025 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant