public function getSharedDirectory()
    {
        $result = self::DEFAULT_SHARED_DIR;
        if ($this->hasOption('sharedDirectory') && !empty($this->getOption('sharedDirectory'))) {
            $sharedPath = $this->getOption('sharedDirectory');
            if (preg_match('/(^|\/)\.\.(\/|$)/', $sharedPath)) {
                throw new InvalidConfigurationException(
                    sprintf(
                        'Relative constructs as "../" are not allowed in option "sharedDirectory". Given option: "%s"',
                        $sharedPath
                    ),
                    1490107183141
                );
            }
            $result = rtrim($sharedPath, '/');
        }
        return $result;
    }
public function getSharedDirectory()
    {
        $result = self::DEFAULT_SHARED_DIR;
        if ($this->hasOption('sharedDirectory') && !empty($this->getOption('sharedDirectory'))) {
            $sharedPath = $this->getOption('sharedDirectory');
            if (preg_match('/(^|\/)\.\.(\/|$)/', $sharedPath)) {
                throw new InvalidConfigurationException(
                    sprintf(
                        'Relative constructs as "../" are not allowed in option "sharedDirectory". Given option: "%s"',
                        $sharedPath
                    ),
                    1490107183141
                );
            }
            $result = rtrim($sharedPath, '/');
        }
        return $result;
    }
public function getSharedDirectory ( ) { $ result = self :: DEFAULT_SHARED_DIR ; if ( $ this -> hasOption ( 'sharedDirectory' ) && ! empty ( $ this -> getOption ( 'sharedDirectory' ) ) ) { $ sharedPath = $ this -> getOption ( 'sharedDirectory' ) ; if ( preg_match ( '/(^|\/)\.\.(\/|$)/' , $ sharedPath ) ) { throw new InvalidConfigurationException ( sprintf ( 'Relative constructs as "../" are not allowed in option "sharedDirectory". Given option: "%s"' , $ sharedPath ) , 1490107183141 ) ; } $ result = rtrim ( $ sharedPath , '/' ) ; } return $ result ; }
Returns the shared directory

takes directory name from option "sharedDirectory"
if option is not set or empty constant DEFAULT_SHARED_DIR "shared" is used

@return string
@throws InvalidConfigurationException
Returns the shared directory