22 lines
344 B
PHP
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;
|
|
}
|
|
}
|