public static function permissionDirs(Event $event)
    {
        $options = self::getOptions($event);
        $appDir = $options['ppi-app-dir'];
        $logsDir = realpath($appDir) . '/logs';
        $cacheDir = realpath($appDir) . '/cache';
        foreach(array($logsDir, $cacheDir) as $dir) {
            if(is_dir($dir) && is_writable($dir)) {
                @chmod($dir, 0777);
            }
        }

    }
public static function permissionDirs(Event $event)
    {
        $options = self::getOptions($event);
        $appDir = $options['ppi-app-dir'];
        $logsDir = realpath($appDir) . '/logs';
        $cacheDir = realpath($appDir) . '/cache';
        foreach(array($logsDir, $cacheDir) as $dir) {
            if(is_dir($dir) && is_writable($dir)) {
                @chmod($dir, 0777);
            }
        }

    }
public static function permissionDirs ( Event $ event ) { $ options = self :: getOptions ( $ event ) ; $ appDir = $ options [ 'ppi-app-dir' ] ; $ logsDir = realpath ( $ appDir ) . '/logs' ; $ cacheDir = realpath ( $ appDir ) . '/cache' ; foreach ( array ( $ logsDir , $ cacheDir ) as $ dir ) { if ( is_dir ( $ dir ) && is_writable ( $ dir ) ) { @ chmod ( $ dir , 0777 ) ; } } }
Apply open writable permissions to logs and cache folders

@param $event
Apply open writable permissions to logs and cache folders