Phalcon\Test\integration\Mvc\View\SimpleCest::getDi PHP 메소드

getDi() 보호된 메소드

Setup viewCache service and DI
protected getDi ( ) : Di
리턴 Phalcon\Di
    protected function getDi()
    {
        $di = new Di();
        $di->set('viewCache', function () {
            return new File(new Output(['lifetime' => 2]), ['cacheDir' => PATH_CACHE]);
        });
        return $di;
    }