AbstractController.class.php
520 Bytes
<?php
/**
* Created by PhpStorm.
* User: zhoutao
* Date: 2018/1/8
* Time: 下午3:54
*/
namespace Apicp\Controller\VhLiveTotal;
use Common\Service\VhallService;
class AbstractController extends \Apicp\Controller\AbstractController
{
/** @var VhallService */
protected $vhall_service;
public function before_action($action = '')
{
if (!parent::before_action($action)) {
return false;
}
$this->vhall_service = new VhallService();
return true;
}
}