Skip to content

Development instructions

Risto Kekovic edited this page Apr 19, 2021 · 1 revision

Setting up the environment

Please set the following resource limits in your PHP configuration:

max_execution_time = 360
max_input_time = 120
max_input_vars = 10000
memory_limit = 512M
xdebug.max_nesting_level=1000

Development commands

In order to install plugin for development copy whole content of a Mollie folder to a oro shop src folder and then run migration script and cache clear an static content deployment with following commands:

php bin/console cache:clear --env=dev && 
php bin/console oro:migration:load --bundles="MolliePaymentBundle" --force --env=dev &&
php bin/console oro:migration:data:load --env=dev &&
php bin/console oro:entity-extend:update-config --env=dev && 
php bin/console oro:entity-extend:update-schema --env=dev && 
php bin/console oro:entity-extend:cache:warmup --env=dev && 
php bin/console oro:assets:install  --symlink --env=dev && 
php bin/console oro:translation:load --env=dev

If OroCommerce shop is installed in production mode use --env=prod flag for previous commands.

In order to update translations, please run

php bin/console oro:translation:load

Unit tests

For the development env, in the <oro-root>/phpunit.xml.dist under the testsuite tag, add the path to the Mollie/Bundle/PaymentBundleTests/Unit subfolder (inside the oro domain).

<testsuites>
   <testsuite name="unit">
       ...
       <directory> {path to the Mollie/Bundle/PaymentBundle}/Tests/Unit</directory>
       ...
   </testsuite>
</testsuites>

Code sniffer

Before each commit, from the project root, please run php bin/php-cs-fixer-v2.phar fix Mollie command.