1
0
mirror of synced 2025-01-25 01:31:41 +03:00
DeliveryModuleBundle/Service/PinbaService.php
2020-08-18 17:53:40 +03:00

23 lines
458 B
PHP

<?php
namespace RetailCrm\DeliveryModuleBundle\Service;
class PinbaService
{
/**
* @return mixed
*/
public function timerHandler(array $tags, \Closure $handler)
{
if (function_exists('pinba_timer_start')) {
$timer = pinba_timer_start($tags);
$response = $handler();
pinba_timer_stop($timer);
} else {
$response = $handler();
}
return $response;
}
}