Skip to content

Commit

Permalink
Craft 4.4 + preloadSingles
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Mar 8, 2023
1 parent 97f9cfe commit 0e17d5a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
"rss": "https://craftcms.com/changelog.rss"
},
"require": {
"craftcms/cms": "^4.3.5",
"craftcms/cms": "^4.4.0",
"vlucas/phpdotenv": "^5.4.0"
},
"require-dev": {
"craftcms/generator": "^1.0.0",
"craftcms/generator": "^1.3.0",
"yiisoft/yii2-shell": "^2.0.3"
},
"autoload": {
Expand Down
4 changes: 2 additions & 2 deletions composer.json.default
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"require": {
"craftcms/cms": "^4.3.5",
"craftcms/cms": "^4.4.0",
"vlucas/phpdotenv": "^5.4.0"
},
"require-dev": {
"craftcms/generator": "^1.0.0",
"craftcms/generator": "^1.3.0",
"yiisoft/yii2-shell": "^2.0.3"
},
"autoload": {
Expand Down
2 changes: 2 additions & 0 deletions config/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
->omitScriptNameInUrls()
// Enable Dev Mode (see https://craftcms.com/guides/what-dev-mode-does)
->devMode(App::env('DEV_MODE') ?? false)
// Preload Single entries as Twig variables
->preloadSingles()
// Allow administrative changes
->allowAdminChanges(App::env('ALLOW_ADMIN_CHANGES') ?? false)
// Disallow robots
Expand Down

0 comments on commit 0e17d5a

Please sign in to comment.