rde/facade

外觀模式

Installs: 10

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

pkg:composer/rde/facade

dev-master 2015-06-04 14:36 UTC

This package is not auto-updated.

Last update: 2025-10-07 08:55:48 UTC


README

實驗性(參考自illuminate)

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version Total Downloads Latest Unstable Version License SensioLabsInsight

使用

初始化

// 指定IoC容器(不限定哪種IoC容器實作,但此IoC容器必須有實作ArrayAccess界面)
Rde\Facade::setApplication($app);

實作系統服務外觀物件

// Cache
use Rde\Facade;

class CacheFacade extends Facade
{
    protected static getAccessName()
    {
        // 回傳服務實體在IoC容器內的註冊名稱
        return 'cache';
    }
}