Skip to content

Commit

Permalink
getName() is new
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Dec 2, 2020
1 parent 5c3b0d2 commit 0b03372
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG-v3.6.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
- Added `craft\helpers\Gql::nPlus1Complexity()`.
- Added `craft\helpers\Gql::singleQueryComplexity()`.
- Added `craft\log\Dispatcher`.
- Added `craft\models\Site::getName()`.
- Added `craft\models\Site::setBaseUrl()`.
- Added `craft\models\Site::setName()`.
- Added `craft\services\Gql::GRAPHQL_COMPLEXITY_CPU_HEAVY`.
Expand All @@ -52,7 +53,6 @@
- `craft\models\Site::$baseUrl` is now a magic property, which returns the parsed base URL. ([#3964](https://github.com/craftcms/cms/issues/3964))
- `craft\models\Site::$name` is now a magic property, which returns the parsed site name. ([#3964](https://github.com/craftcms/cms/issues/3964))
- `craft\models\Site::getBaseUrl()` now has a `$parse` argument, which can be set to `false` to return the raw (unparsed) base URL.
- `craft\models\Site::getName()` now has a `$parse` argument, which can be set to `false` to return the raw (unparsed) site name.
- `craft\services\Composer::install()` no longer has an `$allowlist` argument.
- `craft\services\Gql::getValidationRules()` now has an `$isIntrospectionQuery` argument.
- Craft no longer reports PHP deprecation errors.
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- It’s now possible to set sites’ Name settings to environment variables.
- Added the `{% tag %}` Twig tag.
- Added the `withGroups` user query param.
- Added `craft\models\Site::getName()`.
- Added `craft\models\Site::setBaseUrl()`.
- Added `craft\models\Site::setName()`.

Expand All @@ -15,7 +16,6 @@
- `craft\models\Site::$baseUrl` is now a magic property, which returns the parsed base URL. ([#3964](https://github.com/craftcms/cms/issues/3964))
- `craft\models\Site::$name` is now a magic property, which returns the parsed site name. ([#3964](https://github.com/craftcms/cms/issues/3964))
- `craft\models\Site::getBaseUrl()` now has a `$parse` argument, which can be set to `false` to return the raw (unparsed) base URL.
- `craft\models\Site::getName()` now has a `$parse` argument, which can be set to `false` to return the raw (unparsed) site name.

### Deprecated
- Deprecated the `siteName` config setting. Sites’ Name settings should be set to environment variables instead.
Expand Down

0 comments on commit 0b03372

Please sign in to comment.