# How to prority route

**URL:** <https://forum.shopware.com/t/how-to-prority-route/92130>\
**Category:** Shopware 6 (English)\
**Tags:** programming\
**Created:** [29. Dezember 2021 um 13:37 UTC](https://forum.shopware.com/t/how-to-prority-route/92130 "2021-12-29T13:37:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wis154](https://avatars.discourse-cdn.com/v4/letter/w/ac91a4/32.png) [@wis154](https://forum.shopware.com/u/wis154)\
**Post date:** [29. Dezember 2021 um 13:37 UTC](https://forum.shopware.com/t/how-to-prority-route/92130/1 "2021-12-29T13:37:32Z")

</div>

Hello,

I have overwritten the controller in the application by overwritten route and it works,  
but also installed another plugin that overwritten the same route as I overwritten (this plugin cannot be changed) and now this route is supported by the shopware, not mine.

this is my controller I want to display

```auto
namespace MyPlugin\Core\Checkout\Customer\SalesChannel;

...
class ChangeCustomerProfileRoute extends AbstractChangeCustomerProfileRoute
{
     * @Route(path="/store-api/account/change-profile", name="store-api.account.change-profile", methods={"POST"})
     */
    public function change(RequestDataBag $data, SalesChannelContext $context, CustomerEntity $customer): SuccessResponse

...

```

this is controller in a another plugin -I don’t want to show it  
(I need this plugin because I need functionalities, but I don’t need this route)

```auto
namespace StorePlugin\Core\Checkout\Customer\SalesChannel;

...
class ChangeCustomerProfileRoute extends AbstractChangeCustomerProfileRoute
{
     * @Route(path="/store-api/account/change-profile", name="store-api.account.change-profile", methods={"POST"})
     */
    public function change(RequestDataBag $data, SalesChannelContext $context, CustomerEntity $customer): SuccessResponse

...

```

I have read this article [New in Symfony 5.1: Route annotations priority (Symfony Blog)](https://symfony.com/blog/new-in-symfony-5-1-route-annotations-priority) but it does not work because this do not prioritize the name, only url.

How can I prioritize my route name to be supported by shopware?
