public function handle($absolutePath, $relativePath)
    {
        $safePath = $this->safePath($relativePath);
        $this->encodeStimulusImages($absolutePath);

        $info = $this->getItemSource()->add($absolutePath, basename($absolutePath), $safePath);
        \common_Logger::i('Stimulus file \'' . $absolutePath . '\' copied.');

        return $info;
    }
public function handle($absolutePath, $relativePath)
    {
        $safePath = $this->safePath($relativePath);
        $this->encodeStimulusImages($absolutePath);

        $info = $this->getItemSource()->add($absolutePath, basename($absolutePath), $safePath);
        \common_Logger::i('Stimulus file \'' . $absolutePath . '\' copied.');

        return $info;
    }
public function handle ( $ absolutePath , $ relativePath ) { $ safePath = $ this -> safePath ( $ relativePath ) ; $ this -> encodeStimulusImages ( $ absolutePath ) ; $ info = $ this -> getItemSource ( ) -> add ( $ absolutePath , basename ( $ absolutePath ) , $ safePath ) ; \ common_Logger :: i ( 'Stimulus file \'' . $ absolutePath . '\' copied.' ) ; return $ info ; }
Store locally, in a safe directory
Encoded all stimulus images to avoid file dependencies

@param $absolutePath
@param $relativePath
@return array|mixed
@throws \common_Exception
Store locally in a safe directory Encoded all stimulus images to avoid file dependencies