AbstractController.class.php 512 Bytes
<?php
/**
 * AbstractController.class.php
 * $author$
 */

namespace Apicp\Controller\Encourage;

use Common\Service\MedalService;

abstract class AbstractController extends \Apicp\Controller\AbstractController
{
    /** @var MedalService 初始化激励表 */
    protected $medal_service;

    public function before_action($action = '')
    {
        if (!parent::before_action($action)) {
            return false;
        }

        $this->medal_service = new MedalService();

        return true;
    }

}