public function init(StackableStructureMap $structureMap, AspectRegister $aspectRegister)
    {

        // collect the passed instances
        $this->structureMap = $structureMap;
        $this->aspectRegister = $aspectRegister;

        // load the configuration
        $config = $this->getConfig();

        // pre-load the configuration values
        $this->cacheDir =  $config->getValue('cache/dir');
        $this->environment = $config->getValue('environment');

        // we want to know if there are namespaces to be omitted from autoloading
        if ($config->hasValue('autoloader/omit')) {
            $autoloadingOmitted = $config->getValue('autoloader/omit');
            $this->autoloaderOmit = !empty($autoloadingOmitted);
        }

        // we now have a structure map instance, so fill it initially
        $this->getStructureMap()->fill();
    }
public function init(StackableStructureMap $structureMap, AspectRegister $aspectRegister)
    {

        // collect the passed instances
        $this->structureMap = $structureMap;
        $this->aspectRegister = $aspectRegister;

        // load the configuration
        $config = $this->getConfig();

        // pre-load the configuration values
        $this->cacheDir =  $config->getValue('cache/dir');
        $this->environment = $config->getValue('environment');

        // we want to know if there are namespaces to be omitted from autoloading
        if ($config->hasValue('autoloader/omit')) {
            $autoloadingOmitted = $config->getValue('autoloader/omit');
            $this->autoloaderOmit = !empty($autoloadingOmitted);
        }

        // we now have a structure map instance, so fill it initially
        $this->getStructureMap()->fill();
    }
public function init ( StackableStructureMap $ structureMap , AspectRegister $ aspectRegister ) { // collect the passed instances $ this -> structureMap = $ structureMap ; $ this -> aspectRegister = $ aspectRegister ; // load the configuration $ config = $ this -> getConfig ( ) ; // pre-load the configuration values $ this -> cacheDir = $ config -> getValue ( 'cache/dir' ) ; $ this -> environment = $ config -> getValue ( 'environment' ) ; // we want to know if there are namespaces to be omitted from autoloading if ( $ config -> hasValue ( 'autoloader/omit' ) ) { $ autoloadingOmitted = $ config -> getValue ( 'autoloader/omit' ) ; $ this -> autoloaderOmit = ! empty ( $ autoloadingOmitted ) ; } // we now have a structure map instance, so fill it initially $ this -> getStructureMap ( ) -> fill ( ) ; }
Initializes the autoloader with the values from the configuration
and creates and fills the structure map instance.

@param \AppserverIo\Appserver\Core\StackableStructureMap $structureMap   Structure map to be used
@param \AppserverIo\Doppelgaenger\AspectRegister         $aspectRegister The register for all found aspects

@return void
Initializes the autoloader with the values from the configuration and creates and fills the structure map instance .