protected DrupalKernel::cacheDrupalContainer(array $container_definition)
Stores the container definition in a cache.
array $container_definition: The container definition to cache.
bool TRUE if the container was successfully cached.
protected function cacheDrupalContainer(array $container_definition) { $saved = TRUE; try { $this->bootstrapContainer->get('cache.container')->set($this->getContainerCacheKey(), $container_definition); } catch (\Exception $e) { // There is no way to get from the Cache API if the cache set was // successful or not, hence an Exception is caught and the caller informed // about the error condition. $saved = FALSE; } return $saved; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!DrupalKernel.php/function/DrupalKernel::cacheDrupalContainer/8.1.x