pscheit/psc-cms-boot
最新稳定版本:2.3.0
Composer 安装命令:
composer require pscheit/psc-cms-boot
包简介
Boot strapping package for Webforge
README 文档
README
PHP Bootloading Sucks - at least that helps to suck a little more less
- manages to load the autoload for composer (even if you're bootstrapping as a dependency)
- helps in early stages bootstrapping
- lets you bootstrap a Psc - CMS - Container for Psc - CMS - Projects
Copy the lib/package.boot.php next to your bootstrap.php
use Psc\Boot\BootLoader; require 'package.boot.php'; $bootLoader = new BootLoader(__DIR__, 'ACME\Container'); $bootLoader->loadComposer(); $bootLoader->registerContainer(); // this is optional
When you registered the Container $GLOBALS['env']['container'] points to the ACME\Container.
When you do $bootLoader->registerRootDirectory the $GLOBALS['env']['root'] points to a \Webforge\Common\System\Dir which is the directory of your bootstrap.php (given here as DIR).
统计信息
- 总下载量: 1.12k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-02-08