penambahan phpdoc dan perubahan semua class mengacu hanya pada $app
This commit is contained in:
+17
-3
@@ -3,7 +3,6 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /Data/Cache.php
|
||||
Desc. : Class cache css dan js aplikasi
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : March 16th, 2008.
|
||||
Last Modified : August 21st, 2026.
|
||||
@@ -22,6 +21,17 @@ use \FilesystemIterator;
|
||||
use \MatthiasMullie\Minify;
|
||||
use \SplFileInfo;
|
||||
|
||||
/**
|
||||
* Class Cache
|
||||
*
|
||||
* Membuat Cache gabungan CSS dan JS sesuai dengan session.
|
||||
*
|
||||
* @license MIT, https://www.3fonia.com
|
||||
* @copyright Copyright (c) 2008-2026, Siau Pheng <[email protected]>
|
||||
*
|
||||
* @package Webapp\Data
|
||||
*/
|
||||
|
||||
final class Cache {
|
||||
private $__cachedir = "";
|
||||
private $__cssdir = "";
|
||||
@@ -34,9 +44,13 @@ final class Cache {
|
||||
protected Session $session;
|
||||
protected array $__asset = [];
|
||||
|
||||
public function __construct(Engine $app, Session $session) {
|
||||
/**
|
||||
* @param Engine $app
|
||||
*/
|
||||
|
||||
public function __construct(Engine $app) {
|
||||
$this->app = $app;
|
||||
$this->session = $session;
|
||||
$this->session = $app->session();
|
||||
$rootdir = (defined('PROJECT_ROOT')) ? PROJECT_ROOT : $this->app->get('app.project_root');
|
||||
$this->__cachedir = $rootdir . '/public/chunks/';
|
||||
$this->__localedir = $rootdir . '/app/Scripts/locale/';
|
||||
|
||||
Reference in New Issue
Block a user