public function createProjectByInput(InputInterface $input) : Project
    {
        $configFinder = new ConfigFinder();
        $configLoader = new ConfigLoader();

        /**
         * This section is just for finding the right values to work with in
         * this execution.
         *
         * $options array will have, after this block, all these values
         */
        $configPath = rtrim($input->getOption('config'), DIRECTORY_SEPARATOR);
        $configValues = $configLoader->loadConfigValues(
            $configFinder->findConfigFile($configPath)
        );

        $masterLanguage = $configValues['master_language'];
        $languages = $configValues['languages'];
        $filePaths = $configValues['paths'];

        return Project::create(
            $masterLanguage,
            $languages,
            $filePaths
        );
    }
public function createProjectByInput(InputInterface $input) : Project
    {
        $configFinder = new ConfigFinder();
        $configLoader = new ConfigLoader();

        /**
         * This section is just for finding the right values to work with in
         * this execution.
         *
         * $options array will have, after this block, all these values
         */
        $configPath = rtrim($input->getOption('config'), DIRECTORY_SEPARATOR);
        $configValues = $configLoader->loadConfigValues(
            $configFinder->findConfigFile($configPath)
        );

        $masterLanguage = $configValues['master_language'];
        $languages = $configValues['languages'];
        $filePaths = $configValues['paths'];

        return Project::create(
            $masterLanguage,
            $languages,
            $filePaths
        );
    }
public function createProjectByInput ( InputInterface $ input ) : Project { $ configFinder = new ConfigFinder ( ) ; $ configLoader = new ConfigLoader ( ) ; /**
         * This section is just for finding the right values to work with in
         * this execution.
         *
         * $options array will have, after this block, all these values
         */ $ configPath = rtrim ( $ input -> getOption ( 'config' ) , DIRECTORY_SEPARATOR ) ; $ configValues = $ configLoader -> loadConfigValues ( $ configFinder -> findConfigFile ( $ configPath ) ) ; $ masterLanguage = $ configValues [ 'master_language' ] ; $ languages = $ configValues [ 'languages' ] ; $ filePaths = $ configValues [ 'paths' ] ; return Project :: create ( $ masterLanguage , $ languages , $ filePaths ) ; }
Create project given an input instance.

@param InputInterface $input

@return Project
Create project given an input instance .