Skip to content
Permalink
Browse files

replace deprecated options

  • Loading branch information
flack committed Jan 10, 2020
1 parent 3432608 commit bba2debae145b03c064b858cb145313b2d3565b8
Showing with 3 additions and 5 deletions.
  1. +1 −1 composer.json
  2. +1 −1 lib/midcom/services/cache/main.php
  3. +1 −3 src/midcom/routing/resolver.php
@@ -47,7 +47,7 @@
"symfony/intl": ">=4.4",
"symfony/mime": ">=4.4",
"symfony/options-resolver": ">=4.4",
"symfony/routing": "^4.4",
"symfony/routing": ">=4.4",
"symfony/security-csrf": ">=4.4",
"symfony/translation": ">=4.4",
"symfony/validator": ">=4.4",
@@ -139,7 +139,7 @@ public function invalidate_all()
debug_add("Invalidating the cache module {$name} completely.");
$module->invalidate_all();
}
array_map('unlink', glob(midcom::get()->config->get('cache_base_directory') . 'routing/*'));
array_map('unlink', glob(midcom::get()->config->get('cache_base_directory') . 'routing/*/*'));
connection::invalidate_cache();
}

@@ -57,9 +57,7 @@ public static function get_router($component, array $request_switch = []) : Rout
}
$identifier = str_replace('.', '_', $component);
return new Router($loader, $component, [
'cache_dir' => midcom::get()->config->get('cache_base_directory') . 'routing',
'matcher_cache_class' => "loader__$identifier",
'generator_cache_class' => "generator__$identifier"
'cache_dir' => midcom::get()->config->get('cache_base_directory') . 'routing/' . $identifier,
]);
}

0 comments on commit bba2deb

Please sign in to comment.
You can’t perform that action at this time.