Skip to content

Commit

Permalink
post install script
Browse files Browse the repository at this point in the history
Signed-off-by: MarioRadu <magda_marior@yahoo.com>
  • Loading branch information
MarioRadu committed Dec 3, 2024
1 parent b855cbb commit 45ef48c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 109 deletions.
47 changes: 0 additions & 47 deletions bin/composer-post-install-script.php

This file was deleted.

60 changes: 0 additions & 60 deletions bin/composer-post-package-install-script.php

This file was deleted.

6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,10 @@
"post-create-project-cmd": [
"@development-enable"
],
"post-package-install": [
"php bin/composer-post-install-script.php"
"post-install-cmd": [
"php -r \"if (is_readable('config/autoload/local.php')) { echo 'File already exists' . PHP_EOL; } else { copy('config/autoload/local.php.dist', 'config/autoload/local.php'); echo 'File copied successfully'; }\"",
"php -r \"if (is_readable('config/autoload/local.test.php')) { echo 'File already exists' . PHP_EOL; } else { copy('config/autoload/local.test.php.dist', 'config/autoload/local.test.php'); echo 'File copied successfully'; }\"",
"php -r \"if (is_readable('config/autoload/mail.local.php')) { echo 'File already exists' . PHP_EOL; } else { copy('vendor/dotkernel/dot-mail/config/mail.global.php.dist', 'config/autoload/mail.local.php'); echo 'File copied successfully'; }\""
],
"development-disable": "laminas-development-mode disable",
"development-enable": "laminas-development-mode enable",
Expand Down

0 comments on commit 45ef48c

Please sign in to comment.