protected function loadConfiguration(InputInterface $input)
    {
        $loader = new ConfigurationLoader();

        if ($input->hasOption('config') && $file = $input->getOption('config')) {
            $configuration = $loader->loadFromFile($file);
        } else {
            
            if (null === $this->container) {
                throw new Exception('Unable to find the assets configuration from the container');
            }
            $configuration = $loader->loadFromContainer($this->container);
        }

        return $configuration;
    }
protected function loadConfiguration(InputInterface $input)
    {
        $loader = new ConfigurationLoader();

        if ($input->hasOption('config') && $file = $input->getOption('config')) {
            $configuration = $loader->loadFromFile($file);
        } else {
            
            if (null === $this->container) {
                throw new Exception('Unable to find the assets configuration from the container');
            }
            $configuration = $loader->loadFromContainer($this->container);
        }

        return $configuration;
    }
protected function loadConfiguration ( InputInterface $ input ) { $ loader = new ConfigurationLoader ( ) ; if ( $ input -> hasOption ( 'config' ) && $ file = $ input -> getOption ( 'config' ) ) { $ configuration = $ loader -> loadFromFile ( $ file ) ; } else { if ( null === $ this -> container ) { throw new Exception ( 'Unable to find the assets configuration from the container' ) ; } $ configuration = $ loader -> loadFromContainer ( $ this -> container ) ; } return $ configuration ; }
Load the configuration from a yml file or the container, according to the given option.

@param InputInterface $input

@return array

@throws Exception
Load the configuration from a yml file or the container according to the given option .