src/xPDO/Transport/xPDOTransport.php
public function writeManifest() {
        $written = false;
        if (!empty ($this->vehicles)) {
            if (!empty($this->attributes['setup-options']) && is_array($this->attributes['setup-options'])) {
                $cacheManager = $this->xpdo->getCacheManager();
                $cacheManager->copyFile($this->attributes['setup-options']['source'],$this->path . $this->signature . '/setup-options.php');

                $this->attributes['setup-options'] = $this->signature . '/setup-options.php';
            }
            $manifest = array(
                xPDOTransport::MANIFEST_VERSION => $this->manifestVersion,
                xPDOTransport::MANIFEST_ATTRIBUTES => $this->attributes,
                xPDOTransport::MANIFEST_VEHICLES => $this->vehicles
            );
            $content = var_export($manifest, true);
            $cacheManager = $this->xpdo->getCacheManager();
            if ($content && $cacheManager) {
                $fileName = $this->path . $this->signature . '/manifest.php';
                $content = "<?php return {$content};";
                if (!($written = $cacheManager->writeFile($fileName, $content))) {
                    $this->xpdo->log(xPDO::LOG_LEVEL_ERROR, 'Error writing manifest to ' . $fileName);
                }
            }
        }
        return $written;
    }
public function writeManifest() {
        $written = false;
        if (!empty ($this->vehicles)) {
            if (!empty($this->attributes['setup-options']) && is_array($this->attributes['setup-options'])) {
                $cacheManager = $this->xpdo->getCacheManager();
                $cacheManager->copyFile($this->attributes['setup-options']['source'],$this->path . $this->signature . '/setup-options.php');

                $this->attributes['setup-options'] = $this->signature . '/setup-options.php';
            }
            $manifest = array(
                xPDOTransport::MANIFEST_VERSION => $this->manifestVersion,
                xPDOTransport::MANIFEST_ATTRIBUTES => $this->attributes,
                xPDOTransport::MANIFEST_VEHICLES => $this->vehicles
            );
            $content = var_export($manifest, true);
            $cacheManager = $this->xpdo->getCacheManager();
            if ($content && $cacheManager) {
                $fileName = $this->path . $this->signature . '/manifest.php';
                $content = "<?php return {$content};";
                if (!($written = $cacheManager->writeFile($fileName, $content))) {
                    $this->xpdo->log(xPDO::LOG_LEVEL_ERROR, 'Error writing manifest to ' . $fileName);
                }
            }
        }
        return $written;
    }
public function writeManifest ( ) { $ written = false ; if ( ! empty ( $ this -> vehicles ) ) { if ( ! empty ( $ this -> attributes [ 'setup-options' ] ) && is_array ( $ this -> attributes [ 'setup-options' ] ) ) { $ cacheManager = $ this -> xpdo -> getCacheManager ( ) ; $ cacheManager -> copyFile ( $ this -> attributes [ 'setup-options' ] [ 'source' ] , $ this -> path . $ this -> signature . '/setup-options.php' ) ; $ this -> attributes [ 'setup-options' ] = $ this -> signature . '/setup-options.php' ; } $ manifest = array ( xPDOTransport :: MANIFEST_VERSION => $ this -> manifestVersion , xPDOTransport :: MANIFEST_ATTRIBUTES => $ this -> attributes , xPDOTransport :: MANIFEST_VEHICLES => $ this -> vehicles ) ; $ content = var_export ( $ manifest , true ) ; $ cacheManager = $ this -> xpdo -> getCacheManager ( ) ; if ( $ content && $ cacheManager ) { $ fileName = $ this -> path . $ this -> signature . '/manifest.php' ; $ content = "<?php return {$content};" ; if ( ! ( $ written = $ cacheManager -> writeFile ( $ fileName , $ content ) ) ) { $ this -> xpdo -> log ( xPDO :: LOG_LEVEL_ERROR , 'Error writing manifest to ' . $ fileName ) ; } } } return $ written ; }
Write the package manifest file.

@return boolean Indicates if the manifest was successfully written.
Write the package manifest file .