« Previous | Next » 

Revision 4b8fdf0d

ID4b8fdf0d5bedf6ad6db1c0d9c17358a2f0a83790
Parent 7e5f254a
Child 562820cb

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.

Background:
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