protected function createConfiguration($filename)
    {

        // initialize the params specified with the --params parameter
        $params = null;

        // try to load the params from the commandline
        if ($this->input->hasOptionSpecified(InputOptionKeys::PARAMS) && $this->input->getOption(InputOptionKeys::PARAMS)) {
            $params = $this->input->getOption(InputOptionKeys::PARAMS);
        }

        // initialize the params file specified with the --params-file parameter
        $paramsFile = null;

        // try to load the path of the params file from the commandline
        if ($this->input->hasOptionSpecified(InputOptionKeys::PARAMS_FILE) && $this->input->getOption(InputOptionKeys::PARAMS_FILE)) {
            $paramsFile = $this->input->getOption(InputOptionKeys::PARAMS_FILE);
        }

        // create the configuration and return it
        return $this->configurationFactory->factory($filename, pathinfo($filename, PATHINFO_EXTENSION), $params, $paramsFile);
    }
protected function createConfiguration($filename)
    {

        // initialize the params specified with the --params parameter
        $params = null;

        // try to load the params from the commandline
        if ($this->input->hasOptionSpecified(InputOptionKeys::PARAMS) && $this->input->getOption(InputOptionKeys::PARAMS)) {
            $params = $this->input->getOption(InputOptionKeys::PARAMS);
        }

        // initialize the params file specified with the --params-file parameter
        $paramsFile = null;

        // try to load the path of the params file from the commandline
        if ($this->input->hasOptionSpecified(InputOptionKeys::PARAMS_FILE) && $this->input->getOption(InputOptionKeys::PARAMS_FILE)) {
            $paramsFile = $this->input->getOption(InputOptionKeys::PARAMS_FILE);
        }

        // create the configuration and return it
        return $this->configurationFactory->factory($filename, pathinfo($filename, PATHINFO_EXTENSION), $params, $paramsFile);
    }
protected function createConfiguration ( $ filename ) { // initialize the params specified with the --params parameter $ params = null ; // try to load the params from the commandline if ( $ this -> input -> hasOptionSpecified ( InputOptionKeys :: PARAMS ) && $ this -> input -> getOption ( InputOptionKeys :: PARAMS ) ) { $ params = $ this -> input -> getOption ( InputOptionKeys :: PARAMS ) ; } // initialize the params file specified with the --params-file parameter $ paramsFile = null ; // try to load the path of the params file from the commandline if ( $ this -> input -> hasOptionSpecified ( InputOptionKeys :: PARAMS_FILE ) && $ this -> input -> getOption ( InputOptionKeys :: PARAMS_FILE ) ) { $ paramsFile = $ this -> input -> getOption ( InputOptionKeys :: PARAMS_FILE ) ; } // create the configuration and return it return $ this -> configurationFactory -> factory ( $ filename , pathinfo ( $ filename , PATHINFO_EXTENSION ) , $ params , $ paramsFile ) ; }
Create and return a new configuration instance from the passed configuration filename
after merging additional specified params from the commandline.

@param string $filename The configuration filename to use

@return \TechDivision\Import\ConfigurationInterface The configuration instance
Create and return a new configuration instance from the passed configuration filename after merging additional specified params from the commandline .