src/Core/ProviderRepository.php
public function writeManifest(array $manifest)
    {
        if (! is_writable(dirname($this->manifestPath))) {
            throw new Exception('The bootstrap/cache directory must be present and writable.');
        }

        $this->files->put(
            $this->manifestPath,
            '<?php return '.var_export($manifest, true).';'
        );

        return array_merge(['when' => []], $manifest);
    }
public function writeManifest(array $manifest)
    {
        if (! is_writable(dirname($this->manifestPath))) {
            throw new Exception('The bootstrap/cache directory must be present and writable.');
        }

        $this->files->put(
            $this->manifestPath,
            '<?php return '.var_export($manifest, true).';'
        );

        return array_merge(['when' => []], $manifest);
    }
public function writeManifest ( array $ manifest ) { if ( ! is_writable ( dirname ( $ this -> manifestPath ) ) ) { throw new Exception ( 'The bootstrap/cache directory must be present and writable.' ) ; } $ this -> files -> put ( $ this -> manifestPath , '<?php return ' . var_export ( $ manifest , true ) . ';' ) ; return array_merge ( [ 'when' => [ ] ] , $ manifest ) ; }
Write the service manifest file.

@param array $manifest

@throws Exception

@return array
Write the service manifest file .