library psc-cms-boot
Boot strapping package for Webforge
pscheit/psc-cms-boot
Boot strapping package for Webforge
- Friday, November 8, 2013
- by pscheit
- Repository
- 1 Watchers
- 0 Stars
- 1,111 Installations
- PHP
- 1 Dependents
- 0 Suggesters
- 0 Forks
- 2 Open issues
- 7 Versions
- 0 % Grown
Psc - CMS - Boot
PHP Bootloading Sucks - at least that helps to suck a little more less, (*1)
, (*2)
- 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
, (*3)
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)., (*4)
dev-master
9999999-dev
Boot strapping package for Webforge
Sources
Download
MIT
by
Philipp Scheit
2.3.0
2.3.0.0
Boot strapping package for Webforge
Sources
Download
MIT
by
Philipp Scheit
2.1.1
2.1.1.0
Boot strapping package for Webforge
Sources
Download
MIT
by
Philipp Scheit
2.2.0
2.2.0.0
Boot strapping package for Webforge
Sources
Download
MIT
by
Philipp Scheit
2.1.0
2.1.0.0
Boot strapping package for Webforge
Sources
Download
by
Philipp Scheit
2.0
2.0.0.0
Boot strapping package for Webforge
Sources
Download
by
Philipp Scheit
1.0
1.0.0.0
Boot strapping package for Webforge
Sources
Download
by
Philipp Scheit