library autoloader
Provides automatic loading of services during development
marshung/autoloader
Provides automatic loading of services during development
- Sunday, June 24, 2018
- by marshung24
- Repository
- 0 Watchers
- 0 Stars
- 12 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 5 Versions
- 0 % Grown
開發用autoloader
說明
提供各模組路徑對映,以達成自動載入類別檔-模擬已安裝狀態, (*1)
用法
- 安裝marshung/autoloader
$ composer require marshung/autoloader 1.*
- 在與vendor同層目錄中建立檔案autoload.conf.php
- 設定路徑對映資料陣列$pathMap
- 格式:$pathMap[$namePath] = $dirPatch;
- 執行此autoloader,如使用framework,可配置在framework設定檔中自動執行
// CodeIgniter: application/config/config.php
$config['enable_hooks'] = TRUE;
// CodeIgniter: application/config/hooks.php
$hook['pre_system'][] = [new \marshung\Autoloader, 'autoloader'];
// Manual call
\marshung\Autoloader::autoloader();
dev-master
9999999-dev
Provides automatic loading of services during development
Sources
Download
MIT
by
Mars Hung
1.0.4
1.0.4.0
Provides automatic loading of services during development
Sources
Download
MIT
by
Mars Hung
1.0.3
1.0.3.0
Provides automatic loading of services during development
Sources
Download
MIT
by
Mars Hung
1.0.1
1.0.1.0
Provides automatic loading of services during development
Sources
Download
MIT
by
Mars Hung
1.0.0
1.0.0.0
Provides automatic loading of services during development
Sources
Download
MIT
by
Mars Hung