pscheit / psc-cms-boot
This package is abandoned and no longer maintained.
No replacement package was suggested.
Boot strapping package for Webforge
2.3.0
2013-11-08 14:53 UTC
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).