-
-
Notifications
You must be signed in to change notification settings - Fork 155
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
base: new-resource-loader
Are you sure you want to change the base?
Resource route collection factory #987
Conversation
loic425
commented
Feb 21, 2025
Q | A |
---|---|
Bug fix? | no |
New feature? | yes |
BC breaks? | no |
Deprecations? | no |
Related tickets | |
License | MIT |
66c90b2
to
444010d
Compare
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); |
There was a problem hiding this comment.
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.
0d67aae
to
3603e04
Compare
@@ -1,7 +1,11 @@ | |||
sylius_crud_routes: | |||
resource: 'sylius.routing.loader.crud_routes_attributes' | |||
type: service | |||
# | |||
#sylius_routes: | |||
# resource: 'sylius.routing.loader.routes_attributes' |
There was a problem hiding this comment.
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
3603e04
to
85434a6
Compare
85434a6
to
e55b412
Compare