Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrala committed Apr 8, 2024
1 parent 2131d56 commit 8d7d734
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@

return static function (RectorConfig $rectorConfig): void {
DeprecationBase::addClass(FunctionToServiceRector::class, $rectorConfig, false, [
new FunctionToServiceConfiguration('render', 'renderer', 'render'),
new FunctionToServiceConfiguration('file_copy', 'file.repository', 'copy'),
new FunctionToServiceConfiguration('file_move', 'file.repository', 'move'),
new FunctionToServiceConfiguration('file_save_data', 'file.repository', 'writeData'),
new FunctionToServiceConfiguration('9.3.0', 'render', 'renderer', 'render'),
new FunctionToServiceConfiguration('8.0.0', 'file_copy', 'file.repository', 'copy'),
new FunctionToServiceConfiguration('9.3.0', 'file_move', 'file.repository', 'move'),
new FunctionToServiceConfiguration('9.3.0', 'file_save_data', 'file.repository', 'writeData'),
new FunctionToServiceConfiguration('10.1.0', 'drupal_theme_rebuild', 'theme.registry', 'reset'),
]);
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

/**
* Implements hook_install().
*/
function append_file_info_install() {
require_once DRUPAL_ROOT . '/includes/theme.inc';
drupal_theme_rebuild();
}

-----
<?php

/**
* Implements hook_install().
*/
function append_file_info_install() {
require_once DRUPAL_ROOT . '/includes/theme.inc';
\Drupal\Component\Utility\DeprecationHelper::backwardsCompatibleCall(\Drupal::VERSION, '10.1.0', fn() => \Drupal::service('theme.registry')->reset(), fn() => drupal_theme_rebuild());
}

0 comments on commit 8d7d734

Please sign in to comment.