@@ -290,6 +290,7 @@ function run($command)
290
290
291
291
$ app = __DIR__ . '/app ' ;
292
292
$ src = __DIR__ . '/src ' ;
293
+ $ space = str_repeat (' ' , 8 );
293
294
294
295
// Replace namespace in "index.php" --------
295
296
$ index = $ app . '/public/index.php ' ;
@@ -298,6 +299,17 @@ function run($command)
298
299
replace_in_file ($ index , $ texts );
299
300
// -----------------------------------------
300
301
302
+ // Replace names in "blades" and "plates" folder ------------
303
+ $ texts = array ('Basilisk ' => $ name );
304
+ $ text = 'A skeleton application for the Slytherin framework ' ;
305
+ $ texts [$ text ] = $ desc ;
306
+ $ texts ['Muggle ' ] = $ author ;
307
+
308
+ replace_in_file ($ app . '/plates/index.php ' , $ texts );
309
+
310
+ replace_in_file ($ app . '/blades/index.blade.php ' , $ texts );
311
+ // ----------------------------------------------------------
312
+
301
313
if (! $ useAssets )
302
314
{
303
315
remove_dir ($ app . '/assets ' );
@@ -324,8 +336,6 @@ function run($command)
324
336
325
337
$ render = "'Rougin\Slytherin\Template\RendererIntegration' " ;
326
338
327
- $ space = str_repeat (' ' , 8 );
328
-
329
339
$ texts = array ();
330
340
331
341
$ texts [$ space . $ render ] = $ space . '// ' . $ render ;
@@ -336,6 +346,15 @@ function run($command)
336
346
remove_dir ($ app . '/plates ' );
337
347
338
348
run ('composer require illuminate/view ' );
349
+
350
+ // Always use "cache" folder ---
351
+ $ useCache = true ;
352
+ // -----------------------------
353
+ }
354
+
355
+ if (! $ useCache )
356
+ {
357
+ remove_dir ($ app . '/cache ' );
339
358
}
340
359
341
360
if ($ useEloquent )
@@ -347,8 +366,6 @@ function run($command)
347
366
{
348
367
$ text = "'Rougin\Weasley\Packages\Laravel\Eloquent' " ;
349
368
350
- $ space = str_repeat (' ' , 8 );
351
-
352
369
$ texts = array ($ space . $ text => $ space . '// ' . $ text );
353
370
354
371
replace_in_file ($ config . '/app.php ' , $ texts );
0 commit comments