protected function installLoadDefaultConfig()
	{
	    $defaultsPath = $this->extension->getDir() . 'config/default';
	    if (is_dir($defaultsPath)) {
    		$defaultIterator = new DirectoryIterator ($defaultsPath);
    		foreach ($defaultIterator as $fileinfo) {
    		    if (!$fileinfo->isDot () && strpos($fileinfo->getFilename(), '.conf.php') > 0) {
                    $confKey = substr($fileinfo->getFilename(), 0, -strlen('.conf.php'));
                    if (! $this->extension->hasConfig($confKey)) {
                        $config = include $fileinfo->getPathname();
                        if ($config instanceof ConfigurableService) {
                            $this->getServiceManager()->register($this->extension->getId() . '/' . $confKey, $config);
                        } else {
                            $this->extension->setConfig($confKey, $config);
                        }
                        $this->extension->setConfig($confKey, $config);
                    }
    		    }
    		}
	    }
	}
protected function installLoadDefaultConfig()
	{
	    $defaultsPath = $this->extension->getDir() . 'config/default';
	    if (is_dir($defaultsPath)) {
    		$defaultIterator = new DirectoryIterator ($defaultsPath);
    		foreach ($defaultIterator as $fileinfo) {
    		    if (!$fileinfo->isDot () && strpos($fileinfo->getFilename(), '.conf.php') > 0) {
                    $confKey = substr($fileinfo->getFilename(), 0, -strlen('.conf.php'));
                    if (! $this->extension->hasConfig($confKey)) {
                        $config = include $fileinfo->getPathname();
                        if ($config instanceof ConfigurableService) {
                            $this->getServiceManager()->register($this->extension->getId() . '/' . $confKey, $config);
                        } else {
                            $this->extension->setConfig($confKey, $config);
                        }
                        $this->extension->setConfig($confKey, $config);
                    }
    		    }
    		}
	    }
	}
protected function installLoadDefaultConfig ( ) { $ defaultsPath = $ this -> extension -> getDir ( ) . 'config/default' ; if ( is_dir ( $ defaultsPath ) ) { $ defaultIterator = new DirectoryIterator ( $ defaultsPath ) ; foreach ( $ defaultIterator as $ fileinfo ) { if ( ! $ fileinfo -> isDot ( ) && strpos ( $ fileinfo -> getFilename ( ) , '.conf.php' ) > 0 ) { $ confKey = substr ( $ fileinfo -> getFilename ( ) , 0 , - strlen ( '.conf.php' ) ) ; if ( ! $ this -> extension -> hasConfig ( $ confKey ) ) { $ config = include $ fileinfo -> getPathname ( ) ; if ( $ config instanceof ConfigurableService ) { $ this -> getServiceManager ( ) -> register ( $ this -> extension -> getId ( ) . '/' . $ confKey , $ config ) ; } else { $ this -> extension -> setConfig ( $ confKey , $ config ) ; } $ this -> extension -> setConfig ( $ confKey , $ config ) ; } } } } }
writes the config based on the config.sample

@access protected
@author Jerome Bogaerts, <jerome@taotesting.com>
@return void
writes the config based on the config . sample