« Previous | Next » 

Revision c06a2a36

Parent 952f1bb2
Child d8d038fe

Added by Bastian Waidelich about 7 years ago

[BUGFIX] Flush configuration cache upon ``PackageStates`` update

This change makes sure that the configuration cache is flushed whenever
the ``PackageStates.php`` file is being updated.

Since I1f9d560303758c87b81a8b5578f1b80b76deb398 a compile time
configuration cache is built even in ``Development`` context.
When this cache is not flushed after creating a new package, this
leads to an fatal error::

Argument 1 passed to ActionController::injectSettings() must be
of the type array, null given

The reason is, that we currently initialize an empty setting for every
package in the ``ConfigurationManager``. If the cache is not rebuilt
upon creation of new Packages, this initialization is skipped and::

ConfigurationManager::getConfiguration('Settings', 'New.Package');

returns ``NULL``.

Change-Id: I1430c87f403848818b1247ee964d5c38c6bdb807
Releases: master, 3.0
Fixes: FLOW-291

  • added
  • modified
  • copied
  • renamed
  • deleted