2017 © Pedro Peláez
 

library core-boot

The OpenLSS bootstrapper

image

openlss/core-boot

The OpenLSS bootstrapper

  • Tuesday, April 9, 2013
  • by nullivex
  • Repository
  • 1 Watchers
  • 0 Stars
  • 221 Installations
  • PHP
  • 17 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 17 Versions
  • 0 % Grown

The README.md

openlss/core-boot

The OpenLSS boostrapper, (*1)

Usage

require('boot.php');
__boot();

Optionally you can predefine root path and a group root, (*2)

define('ROOT',__DIR__);
define('ROOT_GROUP',__DIR__.'/admin');
require('boot.php');
__boot();

What it does

  • By just loading the file
    • Sets all PHP errors to be exceptions
    • Sets up a default exception handler to print friendlier error messages than PHP does by default for uncaught exceptions
    • Sets the default timezone to UTC
    • Sets the ROOT constant if not already defined
  • By calling the __boot() function
    • Calls __boot_pre()
    • Calls __boot_post()
  • By calling __boot_pre()
    • Loads all the dynamic config files and user overrides
    • Sets the timezone from the config
  • By calling __boot_post()
    • Dynamically loads all module init code
    • Loads the Composer autoload file (which will init composer modules and enable autoloading)

Reference

The bootstrapper gives several low level functions to be used for loading the LSS environment, (*3)

(void) __boot()

Boots up the environment, (*4)

(void) __boot_pre()

See above for details, (*5)

(void) __boot_post()

See above for details, (*6)

(bool) __init_load_files($dir_path,$callback=false,$callback_params=array(),$recurse=true)

Loads all PHP files from a given directory either by just including them or passing them to a callback * $dir_path The path to load files from * $callback A function to be called with the path to each file for custom loading * $callback_params An array of parameters to be passed to the callback in addition to the location of the file * $recurse When set to TRUE will recurse into lower directories and load all files, (*7)

(void) __e($err=array())

Loads error codes * Array should be in the following format * CODE => 'CONSTANT' * EG: 1001 => 'E_USER_INVALID' NOTE: Will throw a PHP E_NOTICE if there is a code or constant conflict, (*8)

The Versions

09/04 2013

dev-master

9999999-dev http://openlss.org

The OpenLSS bootstrapper

  Sources   Download

LGPL-3.0+

The Requires

 

bootstrap boot ld openlss

09/04 2013

dev-0.0.x-dev

dev-0.0.x-dev http://openlss.org

The OpenLSS bootstrapper

  Sources   Download

LGPL-3.0+

The Requires

 

bootstrap boot ld openlss

09/04 2013

0.0.15

0.0.15.0 http://openlss.org

The OpenLSS bootstrapper

  Sources   Download

LGPL-3.0+

The Requires

 

bootstrap boot ld openlss

02/04 2013

0.0.10

0.0.10.0 http://openlss.org

The OpenLSS bootstrapper

  Sources   Download

LGPL-3.0+

The Requires

 

bootstrap boot ld openlss

02/04 2013

0.0.11

0.0.11.0 http://openlss.org

The OpenLSS bootstrapper

  Sources   Download

LGPL-3.0+

The Requires

 

bootstrap boot ld openlss

02/04 2013

0.0.12

0.0.12.0 http://openlss.org

The OpenLSS bootstrapper

  Sources   Download

LGPL-3.0+

The Requires

 

bootstrap boot ld openlss

02/04 2013

0.0.13

0.0.13.0 http://openlss.org

The OpenLSS bootstrapper

  Sources   Download

LGPL-3.0+

The Requires

 

bootstrap boot ld openlss

02/04 2013

0.0.14

0.0.14.0 http://openlss.org

The OpenLSS bootstrapper

  Sources   Download

LGPL-3.0+

The Requires

 

bootstrap boot ld openlss

02/04 2013

0.0.7

0.0.7.0 http://openlss.org

The OpenLSS bootstrapper

  Sources   Download

LGPL-3.0+

The Requires

 

bootstrap boot ld openlss

02/04 2013

0.0.8

0.0.8.0 http://openlss.org

The OpenLSS bootstrapper

  Sources   Download

LGPL-3.0+

The Requires

 

bootstrap boot ld openlss

02/04 2013

0.0.9

0.0.9.0 http://openlss.org

The OpenLSS bootstrapper

  Sources   Download

LGPL-3.0+

The Requires

 

bootstrap boot ld openlss

27/03 2013

0.0.6

0.0.6.0 http://openlss.org

The OpenLSS bootstrapper

  Sources   Download

LGPL-3.0+

The Requires

  • php >=5.3.2

 

bootstrap boot ld openlss

26/03 2013

0.0.5

0.0.5.0 http://openlss.org

The OpenLSS bootstrapper

  Sources   Download

LGPL-3.0+

The Requires

  • php >=5.3.2

 

bootstrap boot ld openlss

23/03 2013

0.0.4

0.0.4.0 http://openlss.org

The OpenLSS bootstrapper

  Sources   Download

LGPL-3.0+

The Requires

  • php >=5.3.2

 

bootstrap boot ld openlss

23/03 2013

0.0.3

0.0.3.0 http://openlss.org

The OpenLSS bootstrapper

  Sources   Download

LGPLv2

The Requires

  • php >=5.3.2

 

bootstrap boot ld openlss

23/03 2013

0.0.2

0.0.2.0 http://openlss.org

The OpenLSS bootstrapper

  Sources   Download

LGPLv2

The Requires

  • php >=5.3.2

 

bootstrap boot ld openlss

23/03 2013

0.0.1

0.0.1.0 http://openlss.org

The OpenLSS bootstrapper

  Sources   Download

LGPLv2

The Requires

  • php >=5.3.2

 

bootstrap boot ld openlss