-
Notifications
You must be signed in to change notification settings - Fork 3
Ps 9 #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Ps 9 #11
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
4539933
fix UI + DI bug on PS 9
MartinKreizl 651e46d
depends on core interfaces
MartinKreizl b116880
docker add PS 9 version
MartinKreizl aa6b887
fix pre/post install - fault tolerant
MartinKreizl a1a7421
fix prestashop services - creating adapter instances with our DI cont…
MartinKreizl fbf0a3a
readme - v9 usage
MartinKreizl 777cbf3
include v9 to test matrix
MartinKreizl 9db50dd
dedicated phpstan baselines
MartinKreizl 57fc606
fix tests
MartinKreizl 51b9f7f
fix automations
MartinKreizl d633b4d
fix shell
MartinKreizl 0b0391e
clean up readme
MartinKreizl bb5cc27
raname to bulkgate_sms_module_for_prestashop
MartinKreizl 42a72e5
version up
MartinKreizl 8fa28b5
send-message - fix dark mode
MartinKreizl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| echo "BulkGate module - postinstall" | ||
|
|
||
| su -s /bin/bash www-data -c "bin/console prestashop:module install bg_prestasms" | ||
| su -s /bin/bash www-data -c "bin/console prestashop:module install bulkgate_sms_module_for_prestashop" | ||
|
|
||
| exit 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,8 @@ | ||
| echo "PrestaSMS module - preinstall" | ||
|
|
||
| cd /var/www/html/modules/bg_prestasms | ||
| rm composer.lock | ||
| composer install --prefer-dist --no-progress --no-dev | ||
| cd /var/www/html/modules/bulkgate_sms_module_for_prestashop && \ | ||
| rm composer.lock && \ | ||
| composer install --prefer-dist --no-progress --no-dev && \ | ||
| chown -R www-data:www-data vendor | ||
|
|
||
| exit 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,5 +18,9 @@ | |
| { | ||
| "php": "8.1", | ||
| "prestashop": "8.2.1" | ||
| }, | ||
| { | ||
| "php": "8.4", | ||
| "prestashop": "9.0.0-1.0-classic" | ||
| } | ||
| ] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,28 +1,7 @@ | ||
| services: | ||
| _defaults: | ||
| autowire: true | ||
| autoconfigure: true | ||
| public: true | ||
|
|
||
| # Adapter classes services | ||
|
|
||
| PrestaShop\PrestaShop\Adapter\OrderState\OrderStateDataProvider: | ||
| class: PrestaShop\PrestaShop\Adapter\OrderState\OrderStateDataProvider | ||
| PrestaShop\PrestaShop\Adapter\OrderReturnState\OrderReturnStateDataProvider: | ||
| class: PrestaShop\PrestaShop\Adapter\OrderReturnState\OrderReturnStateDataProvider | ||
| PrestaShop\PrestaShop\Adapter\Shop\Context: | ||
| class: PrestaShop\PrestaShop\Adapter\Shop\Context | ||
| PrestaShop\PrestaShop\Adapter\Shop\Url\BaseUrlProvider: | ||
| class: PrestaShop\PrestaShop\Adapter\Shop\Url\BaseUrlProvider | ||
| arguments: | ||
| - "@=service('prestashop.adapter.legacy.context').getContext().link" | ||
| PrestaShop\PrestaShop\Adapter\Employee\ContextEmployeeProvider: | ||
| class: PrestaShop\PrestaShop\Adapter\Employee\ContextEmployeeProvider | ||
| arguments: | ||
| - '@=service("prestashop.adapter.legacy.context").getContext().employee' | ||
|
|
||
| # Symfony Controller - https://devdocs.prestashop-project.org/1.7/modules/concepts/controllers/admin-controllers/#how-to-declare-a-new-controller | ||
|
|
||
| BulkGate\PrestaShop\Controller\AdminController: | ||
| class: BulkGate\PrestaShop\Controller\AdminController | ||
| autowire: false | ||
| tags: [ controller.service_arguments ] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MartinKreizl Would you consider making it shorter? Not really a best practice for a module name.
bulkgate_smswould be ideal and more manageable. PS guidelines recommend short, lowercase technical names with no unnecessary words.The term
moduleis already implied (everything in /modules is a module).for_prestashopis also redundant, since the marketplace, the back office, and the code context already make it clear that it’s a PrestaShop module.