public function register($throw = true, $prepend = true)
    {

        // now we have a config no matter what, we can store any instance we might need
        $this->getConfig()->storeInstances();

        // query whether the cache is ready or if we aren't in production mode
        if (!$this->cacheIsReady || $this->environment !== 'production') {
            // If yes, load the appropriate autoloader method
            spl_autoload_register(array($this, self::OUR_LOADER), $throw, $prepend);
            return;
        }

        // the cache is ready, so register the simple class loader
        spl_autoload_register(array($this, self::OUR_LOADER_PROD_NO_OMIT), $throw, $prepend);
    }
public function register($throw = true, $prepend = true)
    {

        // now we have a config no matter what, we can store any instance we might need
        $this->getConfig()->storeInstances();

        // query whether the cache is ready or if we aren't in production mode
        if (!$this->cacheIsReady || $this->environment !== 'production') {
            // If yes, load the appropriate autoloader method
            spl_autoload_register(array($this, self::OUR_LOADER), $throw, $prepend);
            return;
        }

        // the cache is ready, so register the simple class loader
        spl_autoload_register(array($this, self::OUR_LOADER_PROD_NO_OMIT), $throw, $prepend);
    }
public function register ( $ throw = true , $ prepend = true ) { // now we have a config no matter what, we can store any instance we might need $ this -> getConfig ( ) -> storeInstances ( ) ; // query whether the cache is ready or if we aren't in production mode if ( ! $ this -> cacheIsReady || $ this -> environment !== 'production' ) { // If yes, load the appropriate autoloader method spl_autoload_register ( array ( $ this , self :: OUR_LOADER ) , $ throw , $ prepend ) ; return ; } // the cache is ready, so register the simple class loader spl_autoload_register ( array ( $ this , self :: OUR_LOADER_PROD_NO_OMIT ) , $ throw , $ prepend ) ; }
Will register our autoloading method at the beginning of the spl autoloader stack

@param boolean $throw   Should we throw an exception on error?
@param boolean $prepend If you want to NOT prepend you might, but you should not

@return null
Will register our autoloading method at the beginning of the spl autoloader stack