The current description is in Setting up the development environment
Work with docker in three commands, run everything from a local computer:
# launch docker make docker_up # update the project (DB, fixtures, etc.) - run in all incomprehensible situations make docker_update_dev # log into PHP container make docker_php_shell or make docker_php_ru_shell # stop containers make docker_stop # stop and delete containers make docker_down The site is available at http://localhost or http://127.0.0.1 and also http://mostbet.local and http://mostbet-ru.local
$ composer install $ make checker_setup Check: the output of the bin/phpcs -i command should mention the Symfony standard
- In the settings (
Settings / Languages and Frameworks / PHP / Code Sniffer) specify the path tobin/phpcs - Configure the
PHP Code Sniffer validationinspection by specifyingCustomas the standard
In PhpStorm 'php-cs-fixer can be used as an external tool.
- In the settings (
Settings / Tools / External Tools) add a new tool with the following settings:- Program:
bin/php-cs-fixer - Parameters:
fix "$FilePath$" - Working directory:
$ProjectFileDir$
- Program:
- Launch from context menus, the main menu, or assign a keyboard shortcut (
Settings/Keymap) to launch on the current file.
cp bin/pre-commit.dist bin/pre-commit \ && chmod a+x bin/pre-commit \ && ln -sr -t .git/hooks/ bin/pre-commitThe set of rules used is set by the file ruleset.xml , in which the Symfony standard is first imported in its entirety, and then rules that we don't need are excluded from it.
The configuration is configured in the .php_cs.dist file. (updated configuration is in the bin/cs-fixer/.php_cs_new_files.dist file)
For easy viewing of the available configuration options, there is [php-cs-fixer configurator](https://mlocati.github.io/php-cs-fixer-configurator /).
$ make deploy host=dev7 branch=MST-XYZ skip_translations=true Tests are run inside a docker container.
docker exec -it -u www-data -e SYMFONY_DEPRECATIONS_HELPER=weak php_ru bin/codecept -f run Functional tests/Functional/AppRuBundledocker exec -it -u www-data -e SYMFONY_DEPRECATIONS_HELPER=weak php bin/codecept -f run Functional tests/Functional/AppBundle docker exec -it -u www-data -e SYMFONY_DEPRECATIONS_HELPER=weak php bin/codecept -f run Functional tests/Functional/CasinoBundledocker exec -it -u www-data -e SYMFONY_DEPRECATIONS_HELPER=weak php_pps bin/codecept -f run Functional tests/Functional/AppPpsBundledocker-compose exec php bin/console doctrine:fixtures:load --append --fixtures=src/TestingBundle/DataFixtures