"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/View/View.php" between
cakephp-4.0.1.tar.gz and cakephp-4.0.2.tar.gz

About: CakePHP is a rapid development framework for PHP applications. Source code.

View.php  (cakephp-4.0.1):View.php  (cakephp-4.0.2)
skipping to change at line 1586 skipping to change at line 1586
{ {
if (isset($options['cache']['key'], $options['cache']['config'])) { if (isset($options['cache']['key'], $options['cache']['config'])) {
$cache = $options['cache']; $cache = $options['cache'];
$cache['key'] = 'element_' . $cache['key']; $cache['key'] = 'element_' . $cache['key'];
return $cache; return $cache;
} }
[$plugin, $name] = $this->pluginSplit($name); [$plugin, $name] = $this->pluginSplit($name);
$underscored = null; $pluginKey = null;
if ($plugin) { if ($plugin) {
$underscored = Inflector::underscore($plugin); $pluginKey = str_replace('/', '_', Inflector::underscore($plugin));
} }
$elementKey = str_replace(['\\', '/'], '_', $name);
$cache = $options['cache']; $cache = $options['cache'];
unset($options['cache'], $options['callbacks'], $options['plugin']); unset($options['cache'], $options['callbacks'], $options['plugin']);
$keys = array_merge( $keys = array_merge(
[$underscored, $name], [$pluginKey, $elementKey],
array_keys($options), array_keys($options),
array_keys($data) array_keys($data)
); );
$config = [ $config = [
'config' => $this->elementCache, 'config' => $this->elementCache,
'key' => implode('_', $keys), 'key' => implode('_', $keys),
]; ];
if (is_array($cache)) { if (is_array($cache)) {
$defaults = [ $defaults = [
'config' => $this->elementCache, 'config' => $this->elementCache,
 End of changes. 4 change blocks. 
3 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)