Files
kupshop/bundles/KupShop/KupShopBundle/Util/ServiceTrait.php
2025-08-02 16:30:27 +02:00

22 lines
344 B
PHP

<?php
namespace KupShop\KupShopBundle\Util;
trait ServiceTrait
{
// Temporary without symfony
private static $service;
/**
* @return static
*/
public static function getService()
{
if (!static::$service) {
static::$service = new static();
}
return static::$service;
}
}