create-prisma-php-app 5.0.0-alpha.23 → 5.0.0-alpha.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bootstrap.php +17 -0
- package/package.json +1 -1
package/dist/bootstrap.php
CHANGED
|
@@ -1321,6 +1321,13 @@ try {
|
|
|
1321
1321
|
require_once Bootstrap::$contentToInclude;
|
|
1322
1322
|
MainLayout::$children = ob_get_clean();
|
|
1323
1323
|
|
|
1324
|
+
if (Request::$fileToInclude === 'index.php') {
|
|
1325
|
+
MainLayout::$children = TemplateCompiler::scopeRouteRoot(
|
|
1326
|
+
MainLayout::$children,
|
|
1327
|
+
Bootstrap::$contentToInclude
|
|
1328
|
+
);
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1324
1331
|
if (count(Bootstrap::$layoutsToInclude) > 1) {
|
|
1325
1332
|
$nestedLayouts = array_slice(Bootstrap::$layoutsToInclude, 1);
|
|
1326
1333
|
|
|
@@ -1332,6 +1339,7 @@ try {
|
|
|
1332
1339
|
ob_start();
|
|
1333
1340
|
require_once $layoutPath;
|
|
1334
1341
|
MainLayout::$children = ob_get_clean();
|
|
1342
|
+
MainLayout::$children = TemplateCompiler::scopeRouteRoot(MainLayout::$children, $layoutPath);
|
|
1335
1343
|
}
|
|
1336
1344
|
}
|
|
1337
1345
|
} else {
|
|
@@ -1384,6 +1392,15 @@ try {
|
|
|
1384
1392
|
}
|
|
1385
1393
|
|
|
1386
1394
|
MainLayout::$html = ob_get_clean();
|
|
1395
|
+
|
|
1396
|
+
if (file_exists(Bootstrap::$parentLayoutPath)) {
|
|
1397
|
+
TemplateCompiler::validateSingleRootHtml(
|
|
1398
|
+
MainLayout::$html,
|
|
1399
|
+
Bootstrap::$parentLayoutPath,
|
|
1400
|
+
'Layout file'
|
|
1401
|
+
);
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1387
1404
|
MainLayout::$html = TemplateCompiler::compile(MainLayout::$html);
|
|
1388
1405
|
MainLayout::$html = TemplateCompiler::injectDynamicContent(MainLayout::$html);
|
|
1389
1406
|
MainLayout::$html = Bootstrap::applyRootLayoutId(MainLayout::$html);
|