for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?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 SprykerEco\Service\NewRelic\Plugin;
use Spryker\Service\Container\ContainerInterface;
use Spryker\Shared\ApplicationExtension\Dependency\Plugin\ApplicationPluginInterface;
use Spryker\Shared\ApplicationExtension\Dependency\Plugin\BootableApplicationPluginInterface;
use Spryker\Zed\Kernel\Communication\AbstractPlugin;
* @method \SprykerEco\Service\NewRelic\NewRelicServiceInterface getService()
* @method \SprykerEco\Service\NewRelic\NewRelicConfig getConfig()
class NewRelicTransactionNameHandlerPlugin extends AbstractPlugin implements ApplicationPluginInterface, BootableApplicationPluginInterface
{
* @param \Spryker\Service\Container\ContainerInterface $container
*
* @return \Spryker\Service\Container\ContainerInterface
public function provide(ContainerInterface $container): ContainerInterface
return $container;
}
public function boot(ContainerInterface $container): ContainerInterface
$this->getService()
->setTransactionName($this->getConfig()->getDefaultTransactionName());