Skip to content

Commit

Permalink
FRW-5917 Fixed Zed application to work as Gateway. (#10455)
Browse files Browse the repository at this point in the history
FRW-5917 Fixed Zed application to work as Gateway
  • Loading branch information
olhalivitchuk authored Sep 7, 2023
1 parent 62b19c6 commit 747170f
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 60 deletions.
4 changes: 0 additions & 4 deletions src/Spryker/Shared/Router/RouterConstants.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ interface RouterConstants
public const BACKEND_GATEWAY_CACHE_PATH = 'ROUTER:BACKEND_GATEWAY_CACHE_PATH';

/**
* @deprecated Use {@link \Spryker\Shared\Router\RouterConstants::BACKOFFICE_IS_CACHE_ENABLED} instead.
*
* Specification:
* - If option set to true, the application will create a router cache on the first request of a route.
*
Expand All @@ -65,8 +63,6 @@ interface RouterConstants
public const ZED_IS_CACHE_ENABLED = 'ROUTER:ZED_IS_CACHE_ENABLED';

/**
* @deprecated Use {@link \Spryker\Shared\Router\RouterConstants::BACKOFFICE_CACHE_PATH} instead.
*
* Specification:
* - Path to where the cache files should be written to.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
use Symfony\Component\Finder\Finder;
use Symfony\Component\Finder\SplFileInfo;

/**
* @deprecated Use {@link \Spryker\Zed\Router\Business\Router\RouterResource\BackofficeRouterResource} instead.
*/
class RouterResource implements ResourceInterface
{
/**
Expand Down
12 changes: 0 additions & 12 deletions src/Spryker/Zed/Router/Business/RouterBusinessFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,6 @@ public function createClosureLoader(): LoaderInterface
}

/**
* @deprecated Use {@link \Spryker\Zed\Router\Business\RouterBusinessFactory::createBackofficeChainRouter()} instead.
*
* @return \Spryker\Zed\Router\Business\Router\ChainRouter
*/
public function createRouter(): ChainRouter
Expand All @@ -243,8 +241,6 @@ public function createRouter(): ChainRouter
}

/**
* @deprecated Use {@link \Spryker\Zed\Router\Business\RouterBusinessFactory::getBackofficeRouterPlugins()} instead.
*
* @return array<\Spryker\Zed\RouterExtension\Dependency\Plugin\RouterPluginInterface>
*/
public function getRouterPlugins(): array
Expand All @@ -253,8 +249,6 @@ public function getRouterPlugins(): array
}

/**
* @deprecated Use {@link \Spryker\Zed\Router\Business\RouterBusinessFactory::createBackofficeRouter()} instead.
*
* @return \Spryker\Zed\Router\Business\Router\RouterInterface
*/
public function createZedRouter(): RouterInterface
Expand All @@ -268,8 +262,6 @@ public function createZedRouter(): RouterInterface
}

/**
* @deprecated Use {@link \Spryker\Zed\Router\Business\RouterBusinessFactory::getBackofficeRouterEnhancerPlugins()} instead.
*
* @return array<\Spryker\Zed\RouterExtension\Dependency\Plugin\RouterEnhancerPluginInterface>
*/
public function getRouterEnhancerPlugins(): array
Expand All @@ -291,8 +283,6 @@ public function createZedDevelopmentRouter(): RouterInterface
}

/**
* @deprecated Use {@link \Spryker\Zed\Router\Business\RouterBusinessFactory::createBackofficeCacheWarmer()} instead.
*
* @return \Spryker\Shared\Router\Cache\CacheInterface
*/
public function createCache(): CacheInterface
Expand All @@ -301,8 +291,6 @@ public function createCache(): CacheInterface
}

/**
* @deprecated Use {@link \Spryker\Zed\Router\Business\RouterBusinessFactory::createBackofficeRouterResource()} instead.
*
* @return \Spryker\Zed\Router\Business\RouterResource\ResourceInterface
*/
public function createResource(): ResourceInterface
Expand Down
8 changes: 0 additions & 8 deletions src/Spryker/Zed/Router/Business/RouterFacadeInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,6 @@ public function warmUpBackendGatewayRouterCache(): void;
*
* @internal
*
* @deprecated Use {@link \Spryker\Zed\Router\Business\RouterFacadeInterface::getBackofficeRouter()} instead.
*
* Specification:
* - Returns Router which handles Zed routes.
*
Expand All @@ -155,8 +153,6 @@ public function getZedRouter(): RouterInterface;
*
* @internal
*
* @deprecated Use {@link \Spryker\Zed\Router\Business\RouterFacadeInterface::getBackofficeChainRouter()} instead.
*
* Specification:
* - Returns a ChainRouter which is added to the Application.
* - Uses RouterExtensionPluginInterfaces to add Router to the ChainRouter.
Expand All @@ -180,10 +176,6 @@ public function getZedFallbackRouter(): RouterInterface;
/**
* @api
*
* @deprecated Use {@link \Spryker\Zed\Router\Business\RouterFacadeInterface::warmUpBackofficeRouterCache()} instead.
* @deprecated Use {@link \Spryker\Zed\Router\Business\RouterFacadeInterface::warmUpBackendGatewayRouterCache()} instead.
* @deprecated Use {@link \Spryker\Zed\Router\Business\RouterFacadeInterface::warmUpMerchantPortalRouterCache()} instead.
*
* Specification:
* - Builds the cache for the Router.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
use Symfony\Component\HttpKernel\Controller\ArgumentResolver;

/**
* @deprecated Use {@link \Spryker\Zed\Router\Communication\Plugin\Application\BackofficeRouterApplicationPlugin} instead.
*
* @method \Spryker\Zed\Router\Business\RouterFacadeInterface getFacade()
* @method \Spryker\Zed\Router\RouterConfig getConfig()
* @method \Spryker\Zed\Router\Communication\RouterCommunicationFactory getFactory()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@
use Symfony\Component\Routing\RouteCollection;

/**
* @deprecated Use {@link \Spryker\Zed\Router\Communication\Plugin\Console\RouterDebugBackofficeConsole} instead.
* @deprecated Use {@link \Spryker\Zed\Router\Communication\Plugin\Console\RouterDebugBackendGatewayConsole} instead.
* @deprecated Use {@link \Spryker\Zed\Router\Communication\Plugin\Console\RouterDebugBackendApiConsole} instead.
*
* @method \Spryker\Zed\Router\Business\RouterFacadeInterface getFacade()
* @method \Spryker\Zed\Router\Communication\RouterCommunicationFactory getFactory()
*/
Expand Down
4 changes: 0 additions & 4 deletions src/Spryker/Zed/Router/RouterConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,6 @@ public function getBackendGatewayRouterCachePath(): string
/**
* @api
*
* @deprecated Use {@link \Spryker\Zed\Router\RouterConfig::getBackofficeRouterConfiguration()} instead.
*
* Specification:
* - Returns a Router configuration which makes use of a Router cache.
*
Expand Down Expand Up @@ -193,8 +191,6 @@ public function getDevelopmentRouterConfiguration(): array
}

/**
* @deprecated Use {@link \Spryker\Zed\Router\RouterConfig::getBackofficeCachePathIfCacheEnabled()} instead.
*
* @return string|null
*/
protected function getCachePathIfCacheEnabled(): ?string
Expand Down
23 changes: 0 additions & 23 deletions src/Spryker/Zed/Router/RouterDependencyProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@
class RouterDependencyProvider extends AbstractBundleDependencyProvider
{
/**
* @deprecated Use {@link \Spryker\Zed\Router\RouterDependencyProvider::PLUGINS_BACKOFFICE_ROUTER} instead.
* @deprecated Use {@link \Spryker\Zed\Router\RouterDependencyProvider::PLUGINS_BACKEND_GATEWAY_ROUTER} instead.
* @deprecated Use {@link \Spryker\Zed\Router\RouterDependencyProvider::PLUGINS_BACKEND_API_ROUTER} instead.
*
* @var string
*/
public const ROUTER_PLUGINS = 'ROUTER_PLUGINS';
Expand All @@ -45,9 +41,6 @@ class RouterDependencyProvider extends AbstractBundleDependencyProvider
public const PLUGINS_MERCHANT_PORTAL_ROUTER = 'PLUGINS_MERCHANT_PORTAL_ROUTER';

/**
* @deprecated Use {@link \Spryker\Zed\Router\RouterDependencyProvider::PLUGINS_BACKOFFICE_ROUTER_ENHANCER} instead.
* @deprecated Use {@link \Spryker\Zed\Router\RouterDependencyProvider::PLUGINS_BACKEND_GATEWAY_ROUTER_ENHANCER} instead.
*
* @var string
*/
public const ROUTER_ENHANCER_PLUGINS = 'router enhancer plugin';
Expand Down Expand Up @@ -246,10 +239,6 @@ protected function getBackendApiRouterPlugins(): array
}

/**
* @deprecated Use {@link \Spryker\Zed\Router\RouterDependencyProvider::addBackofficeRouterPlugins()} instead.
* @deprecated Use {@link \Spryker\Zed\Router\RouterDependencyProvider::addBackendGatewayRouterPlugins()} instead.
* @deprecated Use {@link \Spryker\Zed\Router\RouterDependencyProvider::addBackendApiRouterPlugins()} instead.
*
* @param \Spryker\Zed\Kernel\Container $container
*
* @return \Spryker\Zed\Kernel\Container
Expand All @@ -264,10 +253,6 @@ protected function addRouterPlugins(Container $container): Container
}

/**
* @deprecated Use {@link \Spryker\Zed\Router\RouterDependencyProvider::getBackofficeRouterPlugins()} instead.
* @deprecated Use {@link \Spryker\Zed\Router\RouterDependencyProvider::getBackendGatewayRouterPlugins()} instead.
* @deprecated Use {@link \Spryker\Zed\Router\RouterDependencyProvider::getBackendApiRouterPlugins()} instead.
*
* @return array<\Spryker\Zed\RouterExtension\Dependency\Plugin\RouterPluginInterface>
*/
protected function getRouterPlugins(): array
Expand All @@ -276,10 +261,6 @@ protected function getRouterPlugins(): array
}

/**
* @deprecated Use {@link \Spryker\Zed\Router\RouterDependencyProvider::addBackofficeRouterEnhancerPlugins()} instead.
* @deprecated Use {@link \Spryker\Zed\Router\RouterDependencyProvider::addBackendGatewayRouterEnhancerPlugins()} instead.
* @deprecated Use {@link \Spryker\Zed\Router\RouterDependencyProvider::addMerchantPortalRouterEnhancerPlugins()} instead.
*
* @param \Spryker\Zed\Kernel\Container $container
*
* @return \Spryker\Zed\Kernel\Container
Expand All @@ -294,10 +275,6 @@ protected function addRouterEnhancerPlugins(Container $container): Container
}

/**
* @deprecated Use {@link \Spryker\Zed\Router\RouterDependencyProvider::getBackofficeRouterEnhancerPlugins()} instead.
* @deprecated Use {@link \Spryker\Zed\Router\RouterDependencyProvider::getBackendGatewayRouterEnhancerPlugins()} instead.
* @deprecated Use {@link \Spryker\Zed\Router\RouterDependencyProvider::addMerchantPortalRouterEnhancerPlugins()} instead.
*
* @return array<\Spryker\Zed\RouterExtension\Dependency\Plugin\RouterEnhancerPluginInterface>
*/
protected function getRouterEnhancerPlugins(): array
Expand Down

0 comments on commit 747170f

Please sign in to comment.