protected function getConfig()
    {
        if ($this->config !== null) {
            return $this->config;
        }

        $this->config = $this->getDefaultConfig();

        $app = $this->getContainer();

        $file = $app['filesystem']->getFile(strtolower("extensions_config://{$this->getName()}.{$this->getVendor()}.yml"));

        if (!$file->exists()) {
            try {
                $this->copyDistFile($file);
            } catch (RuntimeException $e) {
                return $this->config;
            }
        }

        $this->addConfig($file);

        $localFile = $file->getParent()->getFile($file->getFilename('.yml') . '_local.yml');
        if ($localFile->exists()) {
            $this->addConfig($localFile);
        }

        return $this->config;
    }
protected function getConfig()
    {
        if ($this->config !== null) {
            return $this->config;
        }

        $this->config = $this->getDefaultConfig();

        $app = $this->getContainer();

        $file = $app['filesystem']->getFile(strtolower("extensions_config://{$this->getName()}.{$this->getVendor()}.yml"));

        if (!$file->exists()) {
            try {
                $this->copyDistFile($file);
            } catch (RuntimeException $e) {
                return $this->config;
            }
        }

        $this->addConfig($file);

        $localFile = $file->getParent()->getFile($file->getFilename('.yml') . '_local.yml');
        if ($localFile->exists()) {
            $this->addConfig($localFile);
        }

        return $this->config;
    }
protected function getConfig ( ) { if ( $ this -> config !== null ) { return $ this -> config ; } $ this -> config = $ this -> getDefaultConfig ( ) ; $ app = $ this -> getContainer ( ) ; $ file = $ app [ 'filesystem' ] -> getFile ( strtolower ( "extensions_config://{$this->getName()}.{$this->getVendor()}.yml" ) ) ; if ( ! $ file -> exists ( ) ) { try { $ this -> copyDistFile ( $ file ) ; } catch ( RuntimeException $ e ) { return $ this -> config ; } } $ this -> addConfig ( $ file ) ; $ localFile = $ file -> getParent ( ) -> getFile ( $ file -> getFilename ( '.yml' ) . '_local.yml' ) ; if ( $ localFile -> exists ( ) ) { $ this -> addConfig ( $ localFile ) ; } return $ this -> config ; }
Returns the config for the extension.

@return array
Returns the config for the extension .