Skip to content

Commit

Permalink
TE-8674 Added new endpoints to the application (#8311)
Browse files Browse the repository at this point in the history
TE-8674 Separate different endpoint bootstraps
  • Loading branch information
stereomon authored Jul 1, 2021
1 parent c3a5579 commit f7bb628
Showing 1 changed file with 41 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php

/**
* Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
*/

namespace Spryker\Zed\Monitoring\Communication\Plugin\EventDispatcher;

use Spryker\Service\Container\ContainerInterface;
use Spryker\Shared\EventDispatcher\EventDispatcherInterface;
use Spryker\Shared\EventDispatcherExtension\Dependency\Plugin\EventDispatcherPluginInterface;
use Spryker\Zed\Kernel\Communication\AbstractPlugin;

/**
* @method \Spryker\Zed\Monitoring\Business\MonitoringFacade getFacade()
* @method \Spryker\Zed\Monitoring\Communication\MonitoringCommunicationFactory getFactory()
* @method \Spryker\Zed\Monitoring\MonitoringConfig getConfig()
*/
class GatewayMonitoringRequestTransactionEventDispatcherPlugin extends AbstractPlugin implements EventDispatcherPluginInterface
{
/**
* {@inheritDoc}
* - Adds subscriber to listen for controller events.
*
* @api
*
* @param \Spryker\Shared\EventDispatcher\EventDispatcherInterface $eventDispatcher
* @param \Spryker\Service\Container\ContainerInterface $container
*
* @return \Spryker\Shared\EventDispatcher\EventDispatcherInterface
*/
public function extend(EventDispatcherInterface $eventDispatcher, ContainerInterface $container): EventDispatcherInterface
{
$eventDispatcher->addSubscriber(
$this->getFactory()->createGatewayControllerListener()
);

return $eventDispatcher;
}
}

0 comments on commit f7bb628

Please sign in to comment.