AbstractController.class.php 517 Bytes
<?php
/**
 * 基类
 * User: zoulongbo
 * Date: 20118/7/26
 * Time: 下午14:59
 */

namespace Api\Controller\VhLiveTotal;

use Common\Service\VhallService;

abstract class AbstractController extends \Api\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;
    }

}