Skip to content

Commit

Permalink
Merge pull request #1442 from spryker-shop/bugfix/frw-2276/dev-added-…
Browse files Browse the repository at this point in the history
…bapi-sapi-event-behavior-event-dispatcher-plugins

Auto-merge based on green CI result.
  • Loading branch information
spryker-release-bot authored Nov 16, 2023
2 parents 4269aca + 85b5eb4 commit 32bf564
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 17 deletions.
27 changes: 12 additions & 15 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

namespace Pyz\Glue\EventDispatcher;

use Spryker\Glue\EventBehavior\Plugin\EventDispatcher\EventBehaviorEventDispatcherPlugin;
use Spryker\Glue\EventDispatcher\EventDispatcherDependencyProvider as SprykerEventDispatcherDependencyProvider;
use Spryker\Glue\GlueApplication\Plugin\EventDispatcher\GlueRestControllerListenerEventDispatcherPlugin;
use Spryker\Glue\GlueApplication\Plugin\EventDispatcher\ResponseSecurityHeadersEventDispatcherPlugin;
Expand All @@ -16,14 +17,30 @@
use Spryker\Glue\Router\Plugin\EventDispatcher\RouterListenerEventDispatcherPlugin;
use Spryker\Glue\Storage\Plugin\EventDispatcher\StorageKeyCacheEventDispatcherPlugin;
use Spryker\Shared\Http\Plugin\EventDispatcher\ResponseListenerEventDispatcherPlugin;
use Spryker\Zed\EventBehavior\Communication\Plugin\EventDispatcher\EventBehaviorEventDispatcherPlugin;

class EventDispatcherDependencyProvider extends SprykerEventDispatcherDependencyProvider
{
/**
* @return array<\Spryker\Shared\EventDispatcherExtension\Dependency\Plugin\EventDispatcherPluginInterface>
*/
protected function getEventDispatcherPlugins(): array
{
return [
new GlueRestControllerListenerEventDispatcherPlugin(),
new StorageKeyCacheEventDispatcherPlugin(),
new AutoloaderCacheEventDispatcherPlugin(),
new RouterListenerEventDispatcherPlugin(),
new ResponseListenerEventDispatcherPlugin(),
new ResponseSecurityHeadersEventDispatcherPlugin(),
new StrictTransportSecurityHeaderEventDispatcherPlugin(),
new CacheControlHeaderEventDispatcherPlugin(),
];
}

/**
* @return array<\Spryker\Shared\EventDispatcherExtension\Dependency\Plugin\EventDispatcherPluginInterface>
*/
protected function getBackendEventDispatcherPlugins(): array
{
return [
new GlueRestControllerListenerEventDispatcherPlugin(),
Expand All @@ -37,4 +54,21 @@ protected function getEventDispatcherPlugins(): array
new EventBehaviorEventDispatcherPlugin(),
];
}

/**
* @return array<\Spryker\Shared\EventDispatcherExtension\Dependency\Plugin\EventDispatcherPluginInterface>
*/
protected function getStorefrontEventDispatcherPlugins(): array
{
return [
new GlueRestControllerListenerEventDispatcherPlugin(),
new StorageKeyCacheEventDispatcherPlugin(),
new AutoloaderCacheEventDispatcherPlugin(),
new RouterListenerEventDispatcherPlugin(),
new ResponseListenerEventDispatcherPlugin(),
new ResponseSecurityHeadersEventDispatcherPlugin(),
new StrictTransportSecurityHeaderEventDispatcherPlugin(),
new CacheControlHeaderEventDispatcherPlugin(),
];
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

use Spryker\Glue\CategoriesBackendApi\Plugin\GlueApplication\CategoriesBackendApiResource;
use Spryker\Glue\DynamicEntityBackendApi\Plugin\GlueApplication\DynamicEntityRouteProviderPlugin;
use Spryker\Glue\EventDispatcher\Plugin\Application\EventDispatcherApplicationPlugin;
use Spryker\Glue\EventDispatcher\Plugin\GlueBackendApiApplication\EventDispatcherApplicationPlugin;
use Spryker\Glue\GlueBackendApiApplication\GlueBackendApiApplicationDependencyProvider as SprykerGlueBackendApiApplicationDependencyProvider;
use Spryker\Glue\GlueBackendApiApplication\Plugin\GlueApplication\ApplicationIdentifierRequestBuilderPlugin;
use Spryker\Glue\GlueBackendApiApplication\Plugin\GlueApplication\LocaleRequestBuilderPlugin;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

namespace Pyz\Glue\GlueStorefrontApiApplication;

use Spryker\Glue\EventDispatcher\Plugin\GlueStorefrontApiApplication\EventDispatcherApplicationPlugin;
use Spryker\Glue\GlueStorefrontApiApplication\GlueStorefrontApiApplicationDependencyProvider as SprykerGlueStorefrontApiApplicationDependencyProvider;
use Spryker\Glue\GlueStorefrontApiApplication\Plugin\GlueApplication\ApplicationIdentifierRequestBuilderPlugin;
use Spryker\Glue\GlueStorefrontApiApplication\Plugin\GlueApplication\LocaleRequestBuilderPlugin;
Expand All @@ -21,6 +22,7 @@
use Spryker\Glue\OauthApi\Plugin\CustomerRequestBuilderPlugin;
use Spryker\Glue\OauthApi\Plugin\GlueApplication\CustomerRequestValidatorPlugin;
use Spryker\Glue\OauthApi\Plugin\GlueApplication\OauthApiTokenResource;
use Spryker\Glue\Router\Plugin\Application\RouterApplicationPlugin;
use Spryker\Glue\StoresApi\Plugin\GlueApplication\StoreValidatorPlugin;
use Spryker\Glue\StoresApi\Plugin\GlueStorefrontApiApplication\StoreApplicationPlugin;
use Spryker\Glue\StoresApi\Plugin\GlueStorefrontApiApplication\StoresResource;
Expand Down Expand Up @@ -102,6 +104,8 @@ protected function getApplicationPlugins(): array
new HttpApplicationPlugin(),
new StoreApplicationPlugin(),
new LocaleApplicationPlugin(),
new RouterApplicationPlugin(),
new EventDispatcherApplicationPlugin(),
];
}
}

0 comments on commit 32bf564

Please sign in to comment.