Skip to content
Permalink
Browse files Browse the repository at this point in the history
SW-26435 - Improve routing
  • Loading branch information
mitelg committed Jan 5, 2022
1 parent 47ebd12 commit a90046c
Show file tree
Hide file tree
Showing 6 changed files with 217 additions and 344 deletions.
195 changes: 0 additions & 195 deletions .phpstan-baseline.neon
Expand Up @@ -47650,46 +47650,6 @@ parameters:
count: 1
path: engine/Shopware/Plugins/Default/Core/RestApi/Components/Router.php

-
message: "#^Access to an undefined property Shopware_Components_Config\\:\\:\\$offlineIp\\.$#"
count: 1
path: engine/Shopware/Plugins/Default/Core/Router/Bootstrap.php

-
message: "#^Method Shopware_Plugins_Core_Router_Bootstrap\\:\\:initServiceMode\\(\\) has no return type specified\\.$#"
count: 1
path: engine/Shopware/Plugins/Default/Core/Router/Bootstrap.php

-
message: "#^Method Shopware_Plugins_Core_Router_Bootstrap\\:\\:onRouteShutdown\\(\\) has no return type specified\\.$#"
count: 1
path: engine/Shopware/Plugins/Default/Core/Router/Bootstrap.php

-
message: "#^Method Shopware_Plugins_Core_Router_Bootstrap\\:\\:onRouteStartup\\(\\) has no return type specified\\.$#"
count: 1
path: engine/Shopware/Plugins/Default/Core/Router/Bootstrap.php

-
message: "#^Method Shopware_Plugins_Core_Router_Bootstrap\\:\\:upgradeShop\\(\\) has no return type specified\\.$#"
count: 1
path: engine/Shopware/Plugins/Default/Core/Router/Bootstrap.php

-
message: "#^Negated boolean expression is always false\\.$#"
count: 3
path: engine/Shopware/Plugins/Default/Core/Router/Bootstrap.php

-
message: "#^Parameter \\#1 \\$str of function trim expects string, string\\|null given\\.$#"
count: 1
path: engine/Shopware/Plugins/Default/Core/Router/Bootstrap.php

-
message: "#^Strict comparison using \\=\\=\\= between string and null will always evaluate to false\\.$#"
count: 1
path: engine/Shopware/Plugins/Default/Core/Router/Bootstrap.php

-
message: "#^Method Shopware_Plugins_Core_System_Bootstrap\\:\\:onDispatchLoopShutdown\\(\\) has no return type specified\\.$#"
count: 1
Expand Down Expand Up @@ -55920,161 +55880,6 @@ parameters:
count: 1
path: tests/Functional/Plugins/Core/PaymentMethods/Components/SepaPaymentMethodTest.php

-
message: "#^Method Shopware\\\\Tests\\\\Functional\\\\Plugins\\\\Core\\\\RestApi\\\\Components\\\\RouterTest\\:\\:routeDeleteProvider\\(\\) has no return type specified\\.$#"
count: 1
path: tests/Functional/Plugins/Core/RestApi/Components/RouterTest.php

-
message: "#^Method Shopware\\\\Tests\\\\Functional\\\\Plugins\\\\Core\\\\RestApi\\\\Components\\\\RouterTest\\:\\:routeGetProvider\\(\\) has no return type specified\\.$#"
count: 1
path: tests/Functional/Plugins/Core/RestApi/Components/RouterTest.php

-
message: "#^Method Shopware\\\\Tests\\\\Functional\\\\Plugins\\\\Core\\\\RestApi\\\\Components\\\\RouterTest\\:\\:routePostProvider\\(\\) has no return type specified\\.$#"
count: 1
path: tests/Functional/Plugins/Core/RestApi/Components/RouterTest.php

-
message: "#^Method Shopware\\\\Tests\\\\Functional\\\\Plugins\\\\Core\\\\RestApi\\\\Components\\\\RouterTest\\:\\:routePutProvider\\(\\) has no return type specified\\.$#"
count: 1
path: tests/Functional/Plugins/Core/RestApi/Components/RouterTest.php

-
message: "#^Method Shopware\\\\Tests\\\\Functional\\\\Plugins\\\\Core\\\\RestApi\\\\Components\\\\RouterTest\\:\\:testCanGetInstance\\(\\) has no return type specified\\.$#"
count: 1
path: tests/Functional/Plugins/Core/RestApi/Components/RouterTest.php

-
message: "#^Method Shopware\\\\Tests\\\\Functional\\\\Plugins\\\\Core\\\\RestApi\\\\Components\\\\RouterTest\\:\\:testDeleteRoutes\\(\\) has no return type specified\\.$#"
count: 1
path: tests/Functional/Plugins/Core/RestApi/Components/RouterTest.php

-
message: "#^Method Shopware\\\\Tests\\\\Functional\\\\Plugins\\\\Core\\\\RestApi\\\\Components\\\\RouterTest\\:\\:testDeleteRoutes\\(\\) has parameter \\$expectedAction with no type specified\\.$#"
count: 1
path: tests/Functional/Plugins/Core/RestApi/Components/RouterTest.php

-
message: "#^Method Shopware\\\\Tests\\\\Functional\\\\Plugins\\\\Core\\\\RestApi\\\\Components\\\\RouterTest\\:\\:testDeleteRoutes\\(\\) has parameter \\$expectedCode with no type specified\\.$#"
count: 1
path: tests/Functional/Plugins/Core/RestApi/Components/RouterTest.php

-
message: "#^Method Shopware\\\\Tests\\\\Functional\\\\Plugins\\\\Core\\\\RestApi\\\\Components\\\\RouterTest\\:\\:testDeleteRoutes\\(\\) has parameter \\$expectedController with no type specified\\.$#"
count: 1
path: tests/Functional/Plugins/Core/RestApi/Components/RouterTest.php

-
message: "#^Method Shopware\\\\Tests\\\\Functional\\\\Plugins\\\\Core\\\\RestApi\\\\Components\\\\RouterTest\\:\\:testDeleteRoutes\\(\\) has parameter \\$expectedId with no type specified\\.$#"
count: 1
path: tests/Functional/Plugins/Core/RestApi/Components/RouterTest.php

-
message: "#^Method Shopware\\\\Tests\\\\Functional\\\\Plugins\\\\Core\\\\RestApi\\\\Components\\\\RouterTest\\:\\:testDeleteRoutes\\(\\) has parameter \\$expectedVersion with no type specified\\.$#"
count: 1
path: tests/Functional/Plugins/Core/RestApi/Components/RouterTest.php

-
message: "#^Method Shopware\\\\Tests\\\\Functional\\\\Plugins\\\\Core\\\\RestApi\\\\Components\\\\RouterTest\\:\\:testDeleteRoutes\\(\\) has parameter \\$uri with no type specified\\.$#"
count: 1
path: tests/Functional/Plugins/Core/RestApi/Components/RouterTest.php

-
message: "#^Method Shopware\\\\Tests\\\\Functional\\\\Plugins\\\\Core\\\\RestApi\\\\Components\\\\RouterTest\\:\\:testGetRoutes\\(\\) has no return type specified\\.$#"
count: 1
path: tests/Functional/Plugins/Core/RestApi/Components/RouterTest.php

-
message: "#^Method Shopware\\\\Tests\\\\Functional\\\\Plugins\\\\Core\\\\RestApi\\\\Components\\\\RouterTest\\:\\:testGetRoutes\\(\\) has parameter \\$expectedAction with no type specified\\.$#"
count: 1
path: tests/Functional/Plugins/Core/RestApi/Components/RouterTest.php

-
message: "#^Method Shopware\\\\Tests\\\\Functional\\\\Plugins\\\\Core\\\\RestApi\\\\Components\\\\RouterTest\\:\\:testGetRoutes\\(\\) has parameter \\$expectedController with no type specified\\.$#"
count: 1
path: tests/Functional/Plugins/Core/RestApi/Components/RouterTest.php

-
message: "#^Method Shopware\\\\Tests\\\\Functional\\\\Plugins\\\\Core\\\\RestApi\\\\Components\\\\RouterTest\\:\\:testGetRoutes\\(\\) has parameter \\$expectedId with no type specified\\.$#"
count: 1
path: tests/Functional/Plugins/Core/RestApi/Components/RouterTest.php

-
message: "#^Method Shopware\\\\Tests\\\\Functional\\\\Plugins\\\\Core\\\\RestApi\\\\Components\\\\RouterTest\\:\\:testGetRoutes\\(\\) has parameter \\$expectedVersion with no type specified\\.$#"
count: 1
path: tests/Functional/Plugins/Core/RestApi/Components/RouterTest.php

-
message: "#^Method Shopware\\\\Tests\\\\Functional\\\\Plugins\\\\Core\\\\RestApi\\\\Components\\\\RouterTest\\:\\:testGetRoutes\\(\\) has parameter \\$uri with no type specified\\.$#"
count: 1
path: tests/Functional/Plugins/Core/RestApi/Components/RouterTest.php

-
message: "#^Method Shopware\\\\Tests\\\\Functional\\\\Plugins\\\\Core\\\\RestApi\\\\Components\\\\RouterTest\\:\\:testPostRoutes\\(\\) has no return type specified\\.$#"
count: 1
path: tests/Functional/Plugins/Core/RestApi/Components/RouterTest.php

-
message: "#^Method Shopware\\\\Tests\\\\Functional\\\\Plugins\\\\Core\\\\RestApi\\\\Components\\\\RouterTest\\:\\:testPostRoutes\\(\\) has parameter \\$expectedAction with no type specified\\.$#"
count: 1
path: tests/Functional/Plugins/Core/RestApi/Components/RouterTest.php

-
message: "#^Method Shopware\\\\Tests\\\\Functional\\\\Plugins\\\\Core\\\\RestApi\\\\Components\\\\RouterTest\\:\\:testPostRoutes\\(\\) has parameter \\$expectedController with no type specified\\.$#"
count: 1
path: tests/Functional/Plugins/Core/RestApi/Components/RouterTest.php

-
message: "#^Method Shopware\\\\Tests\\\\Functional\\\\Plugins\\\\Core\\\\RestApi\\\\Components\\\\RouterTest\\:\\:testPostRoutes\\(\\) has parameter \\$expectedId with no type specified\\.$#"
count: 1
path: tests/Functional/Plugins/Core/RestApi/Components/RouterTest.php

-
message: "#^Method Shopware\\\\Tests\\\\Functional\\\\Plugins\\\\Core\\\\RestApi\\\\Components\\\\RouterTest\\:\\:testPostRoutes\\(\\) has parameter \\$expectedVersion with no type specified\\.$#"
count: 1
path: tests/Functional/Plugins/Core/RestApi/Components/RouterTest.php

-
message: "#^Method Shopware\\\\Tests\\\\Functional\\\\Plugins\\\\Core\\\\RestApi\\\\Components\\\\RouterTest\\:\\:testPostRoutes\\(\\) has parameter \\$uri with no type specified\\.$#"
count: 1
path: tests/Functional/Plugins/Core/RestApi/Components/RouterTest.php

-
message: "#^Method Shopware\\\\Tests\\\\Functional\\\\Plugins\\\\Core\\\\RestApi\\\\Components\\\\RouterTest\\:\\:testPutRoutes\\(\\) has no return type specified\\.$#"
count: 1
path: tests/Functional/Plugins/Core/RestApi/Components/RouterTest.php

-
message: "#^Method Shopware\\\\Tests\\\\Functional\\\\Plugins\\\\Core\\\\RestApi\\\\Components\\\\RouterTest\\:\\:testPutRoutes\\(\\) has parameter \\$expectedAction with no type specified\\.$#"
count: 1
path: tests/Functional/Plugins/Core/RestApi/Components/RouterTest.php

-
message: "#^Method Shopware\\\\Tests\\\\Functional\\\\Plugins\\\\Core\\\\RestApi\\\\Components\\\\RouterTest\\:\\:testPutRoutes\\(\\) has parameter \\$expectedCode with no type specified\\.$#"
count: 1
path: tests/Functional/Plugins/Core/RestApi/Components/RouterTest.php

-
message: "#^Method Shopware\\\\Tests\\\\Functional\\\\Plugins\\\\Core\\\\RestApi\\\\Components\\\\RouterTest\\:\\:testPutRoutes\\(\\) has parameter \\$expectedController with no type specified\\.$#"
count: 1
path: tests/Functional/Plugins/Core/RestApi/Components/RouterTest.php

-
message: "#^Method Shopware\\\\Tests\\\\Functional\\\\Plugins\\\\Core\\\\RestApi\\\\Components\\\\RouterTest\\:\\:testPutRoutes\\(\\) has parameter \\$expectedId with no type specified\\.$#"
count: 1
path: tests/Functional/Plugins/Core/RestApi/Components/RouterTest.php

-
message: "#^Method Shopware\\\\Tests\\\\Functional\\\\Plugins\\\\Core\\\\RestApi\\\\Components\\\\RouterTest\\:\\:testPutRoutes\\(\\) has parameter \\$expectedVersion with no type specified\\.$#"
count: 1
path: tests/Functional/Plugins/Core/RestApi/Components/RouterTest.php

-
message: "#^Method Shopware\\\\Tests\\\\Functional\\\\Plugins\\\\Core\\\\RestApi\\\\Components\\\\RouterTest\\:\\:testPutRoutes\\(\\) has parameter \\$uri with no type specified\\.$#"
count: 1
path: tests/Functional/Plugins/Core/RestApi/Components/RouterTest.php

-
message: "#^Call to an undefined method Enlight_Controller_Request_Request\\:\\:setClientIp\\(\\)\\.$#"
count: 1
Expand Down
1 change: 1 addition & 0 deletions engine/Shopware/Components/Plugin/Namespace.php
Expand Up @@ -39,6 +39,7 @@
* @method Shopware_Plugins_Core_HttpCache_Bootstrap HttpCache()
* @method Shopware_Plugins_Core_MarketingAggregate_Bootstrap MarketingAggregate()
* @method Shopware_Plugins_Core_PostFilter_Bootstrap PostFilter()
* @method Shopware_Plugins_Core_Router_Bootstrap Router()
* @method Shopware_Plugins_Frontend_Statistics_Bootstrap Statistics()
* @method Shopware_Plugins_Backend_SwagUpdate_Bootstrap SwagUpdate()
* @method Shopware_Plugins_Frontend_TagCloud_Bootstrap TagCloud()
Expand Down

0 comments on commit a90046c

Please sign in to comment.