Skip to content
Snippets Groups Projects
Commit f31f67f6 authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

Merge branch 'main' into feature/no-dev

# Conflicts:
#	CHANGELOG.md
#	src/ActivationReminder/Composer/Plugin.php
#	src/ActivationReminder/Composer/PrepareActivationReminderCommand.php
parents 7141867a be815c69
No related branches found
No related tags found
2 merge requests!6Feature/no dev,!5Feature/no dev
Pipeline #11473 passed with stages
in 2 minutes and 53 seconds
...@@ -60,6 +60,19 @@ class PrepareActivationReminderCommand extends BaseCommand ...@@ -60,6 +60,19 @@ class PrepareActivationReminderCommand extends BaseCommand
$output->writeln( "Activation reminder created." ); $output->writeln( "Activation reminder created." );
} }
private function create_or_get_target_file_name( array $class_map, $random_class, $random_letter ) {
$target_file_store = 'vendor/wpdesk/wp-wpdesk-activation-reminder/target-file';
if ( ! file_exists( $target_file_store ) ) {
$target_file = $class_map[ $random_class ];
$target_file = str_replace( '.php', $random_letter . '.php', $target_file );
$target_file = str_replace( getcwd() . '/vendor/composer/../../', '', $target_file );
file_put_contents( $target_file_store, $target_file );
}
return file_get_contents( $target_file_store );
}
private function create_or_get_target_file_name( array $class_map, $random_class, $random_letter ) { private function create_or_get_target_file_name( array $class_map, $random_class, $random_letter ) {
$target_file_store = 'vendor/wpdesk/wp-wpdesk-activation-reminder/target-file'; $target_file_store = 'vendor/wpdesk/wp-wpdesk-activation-reminder/target-file';
if ( ! file_exists( $target_file_store ) ) { if ( ! file_exists( $target_file_store ) ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment