File tree 1 file changed +6
-0
lines changed
src/Illuminate/Foundation
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 3
3
namespace Illuminate \Foundation ;
4
4
5
5
use Illuminate \Filesystem \Filesystem ;
6
+ use Illuminate \Contracts \Filesystem \FileNotFoundException ;
6
7
use Illuminate \Contracts \Foundation \Application as ApplicationContract ;
7
8
8
9
class ProviderRepository
@@ -180,9 +181,14 @@ protected function freshManifest(array $providers)
180
181
*
181
182
* @param array $manifest
182
183
* @return array
184
+ * @throws FileNotFoundException
183
185
*/
184
186
public function writeManifest ($ manifest )
185
187
{
188
+ if (! is_writable (dirname ($ this ->manifestPath ))) {
189
+ throw new FileNotFoundException ('The bootstrap/cache directory must be present and writable. ' );
190
+ }
191
+
186
192
$ this ->files ->put (
187
193
$ this ->manifestPath , '<?php return ' .var_export ($ manifest , true ).'; '
188
194
);
You can’t perform that action at this time.
0 commit comments