Skip to content

Commit

Permalink
Better mutexConfig() note (#7242)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Dec 12, 2020
1 parent d91a176 commit e23350e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/helpers/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -511,11 +511,19 @@ public static function mailerConfig(MailSettings $settings = null): array
}

/**
* Returns the `mutex` component config.
* Returns a file-based `mutex` component config.
*
* ::: tip
* If you were calling this to override the [[\yii\mutex\FileMutex::$isWindows]] property, note that you
* can safely remove your custom `mutex` component config for Craft 3.5.0 and later. Craft now uses a
* database-based mutex component by default (see [[dbMutexConfig()]]), which doesn’t care which type of
* file system is used.
* :::
*
* @return array
* @since 3.0.18
* @deprecated in 3.5.0. Use [[dbMutexConfig()]] instead.
* @deprecated in 3.5.0.
*
*/
public static function mutexConfig(): array
{
Expand Down

0 comments on commit e23350e

Please sign in to comment.