protected function getComposerPathFromInput(InputInterface $input)
    {
        if ($input->getOption('directory')) {
            return $input->getOption('directory');
        }

        if ($input->getOption('global')) {
            return getenv('HOME').'/.composer';
        }
    }
protected function getComposerPathFromInput(InputInterface $input)
    {
        if ($input->getOption('directory')) {
            return $input->getOption('directory');
        }

        if ($input->getOption('global')) {
            return getenv('HOME').'/.composer';
        }
    }
protected function getComposerPathFromInput ( InputInterface $ input ) { if ( $ input -> getOption ( 'directory' ) ) { return $ input -> getOption ( 'directory' ) ; } if ( $ input -> getOption ( 'global' ) ) { return getenv ( 'HOME' ) . '/.composer' ; } }
Get composer path based on user input.

@param \Symfony\Component\Console\Input\InputInterface $input

@return null|string
Get composer path based on user input .