Skip to content

Commit

Permalink
Fixed #2099
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Nov 9, 2017
1 parent 71aa7ea commit a58bb47
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG-v3.md
Expand Up @@ -6,6 +6,9 @@
### Changed
- The default `trustedHosts` config setting value is now `['any']`, meaning all hosts are trusted.

### Fixed
- Fixed a PHP error that occurred when running the `cache/flush-all` command. ([#2099](https://github.com/craftcms/cms/issues/2099))

## 3.0.0-beta.34 - 2017-11-09

### Added
Expand Down
14 changes: 0 additions & 14 deletions src/config/app/main.php
Expand Up @@ -176,20 +176,6 @@
// Dynamically configured components
// -------------------------------------------------------------------------

'assetManager' => function() {
$generalConfig = Craft::$app->getConfig()->getGeneral();

$config = [
'class' => craft\web\AssetManager::class,
'basePath' => $generalConfig->resourceBasePath,
'baseUrl' => $generalConfig->resourceBaseUrl,
'fileMode' => $generalConfig->defaultFileMode,
'dirMode' => $generalConfig->defaultDirMode,
];

return Craft::createObject($config);
},

'cache' => function() {
$generalConfig = Craft::$app->getConfig()->getGeneral();

Expand Down
11 changes: 11 additions & 0 deletions src/config/app/web.php
Expand Up @@ -3,6 +3,17 @@
return [
'class' => \craft\web\Application::class,
'components' => [
'assetManager' => function() {
$generalConfig = Craft::$app->getConfig()->getGeneral();
$config = [
'class' => craft\web\AssetManager::class,
'basePath' => $generalConfig->resourceBasePath,
'baseUrl' => $generalConfig->resourceBaseUrl,
'fileMode' => $generalConfig->defaultFileMode,
'dirMode' => $generalConfig->defaultDirMode,
];
return Craft::createObject($config);
},
'request' => function() {
$generalConfig = Craft::$app->getConfig()->getGeneral();
$config = [
Expand Down

0 comments on commit a58bb47

Please sign in to comment.