1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-23 03:50:56 +08:00
2020-04-03 19:20:46 +08:00

38 lines
582 B
PHP

<?php
namespace App\Providers;
use Phalcon\DiInterface;
use Phalcon\Mvc\User\Component;
abstract class Provider extends Component implements ProviderInterface
{
/**
* Service name
*
* @var string
*/
protected $serviceName;
/**
* Service provider constructor
*
* @param DiInterface $di
*/
public function __construct(DiInterface $di)
{
$this->setDI($di);
}
/**
* Get service name
*
* @return string
*/
public function getName()
{
return $this->serviceName;
}
}