diff --git a/PracticeSymfony.md b/PracticeSymfony.md index b4f71593..d680ccce 100644 --- a/PracticeSymfony.md +++ b/PracticeSymfony.md @@ -25,8 +25,40 @@ Il faut indiquer le paramètre `date.timezone = "Europe/Paris"` dans les fichier - `/etc/php5/apache2/php.ini` - `/etc/php5/cli/php.ini` -Pour tester la configuration PHP, des tests peuvent être lancés ainsi : +## Installation ~~~ -$ php bin/symfony_requirements +$ echo '{"require": {{"symfony/framework-standard-edition": "~3.3"}}' > composer.json +$ composer update +Loading composer repositories with package information +[...] + +$ cd vendor/symfony/framework-standard-edition + +$ composer install +Loading composer repositories with package information +Installing dependencies (including require-dev) from lock file + - Installing doctrine/lexer (v1.0.1) + Loading from cache +[...] +~~~ + +Pour tester la configuration, des tests peuvent être lancés ainsi : + +~~~ +$ cd vendor/symfony/framework-standard-edition +$ php bin/symfony_requirements +Symfony Requirements Checker +~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +> PHP is using the following php.ini file: + /etc/php/7.0/cli/php.ini + +> Checking Symfony requirements: + ................................W........ + + + [OK] + Your system is ready to run Symfony projects +[...] ~~~