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

feature(init): initial version

parent a2ee6496
Branches
No related tags found
2 merge requests!2Feature/init,!1Feature/init
Pipeline #10830 passed
...@@ -4,3 +4,10 @@ Unit: [![coverage report](https://gitlab.com/wpdesk/wp-wpdesk-activation-reminde ...@@ -4,3 +4,10 @@ Unit: [![coverage report](https://gitlab.com/wpdesk/wp-wpdesk-activation-reminde
# wp-wpdesk-activation-reminder # wp-wpdesk-activation-reminder
## Usage
```bash
composer require --dev wpdesk/wp-wpdesk-activation-reminder
composer update
```
\ No newline at end of file
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
namespace WPDesk\ActivationReminder\Composer; namespace WPDesk\ActivationReminder\Composer;
use Composer\Command\BaseCommand; use Composer\Command\BaseCommand;
use ReminderNamespace\Reminder;
use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Output\OutputInterface;
...@@ -131,11 +130,17 @@ class PrepareActivationReminderCommand extends BaseCommand ...@@ -131,11 +130,17 @@ class PrepareActivationReminderCommand extends BaseCommand
return $class_name; return $class_name;
} }
/**
*
*/
private function clear_vendor_prefixed() { private function clear_vendor_prefixed() {
$this->delete_all( 'vendor_prefixed' ); $this->delete_all( 'vendor_prefixed' );
} }
private function delete_all( string $dir ) { /**
* @param string $dir
*/
private function delete_all( $dir ) {
foreach ( glob( $dir . '/*' ) as $file ) { foreach ( glob( $dir . '/*' ) as $file ) {
if ( is_dir( $file ) ) { if ( is_dir( $file ) ) {
$this->delete_all( $file ); $this->delete_all( $file );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment