public function makeTemporary(FileEvent $event)
    {
        if ($event->isTemporary === true) {
            return;
        }
        $temporaryPath = tempnam(\Yii::getAlias('@runtime/yii2-phar'), basename($event->realPath));
        copy($event->realPath, $temporaryPath);

        $event->isTemporary = true;
        $event->realPath = $temporaryPath;
    }
public function makeTemporary(FileEvent $event)
    {
        if ($event->isTemporary === true) {
            return;
        }
        $temporaryPath = tempnam(\Yii::getAlias('@runtime/yii2-phar'), basename($event->realPath));
        copy($event->realPath, $temporaryPath);

        $event->isTemporary = true;
        $event->realPath = $temporaryPath;
    }
public function makeTemporary ( FileEvent $ event ) { if ( $ event -> isTemporary === true ) { return ; } $ temporaryPath = tempnam ( \ Yii :: getAlias ( '@runtime/yii2-phar' ) , basename ( $ event -> realPath ) ) ; copy ( $ event -> realPath , $ temporaryPath ) ; $ event -> isTemporary = true ; $ event -> realPath = $ temporaryPath ; }
Creates tmp file for modificators.

@param FileEvent $event File event.
Creates tmp file for modificators .