File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/Illuminate/Foundation Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 33namespace Illuminate \Foundation ;
44
55use Illuminate \Filesystem \Filesystem ;
6+ use Illuminate \Contracts \Filesystem \FileNotFoundException ;
67use Illuminate \Contracts \Foundation \Application as ApplicationContract ;
78
89class ProviderRepository
@@ -180,9 +181,14 @@ protected function freshManifest(array $providers)
180181 *
181182 * @param array $manifest
182183 * @return array
184+ * @throws FileNotFoundException
183185 */
184186 public function writeManifest ($ manifest )
185187 {
188+ if (! is_writable (dirname ($ this ->manifestPath ))) {
189+ throw new FileNotFoundException ('The bootstrap/cache directory must be present and writable. ' );
190+ }
191+
186192 $ this ->files ->put (
187193 $ this ->manifestPath , '<?php return ' .var_export ($ manifest , true ).'; '
188194 );
You can’t perform that action at this time.
0 commit comments