From 3bb53b8f7569f7fa0a541ae965ccf9afa62127ac Mon Sep 17 00:00:00 2001 From: Yonel Ceruto Date: Wed, 8 Aug 2018 13:29:17 -0400 Subject: [PATCH 1/2] Update README.rst This fix a typo according to https://github.com/symfony/flex/blob/fabf04baa532b8068558d1e54a9358ef26814449/src/Flex.php#L404, though it doesn't work currently, see https://github.com/symfony/demo/issues/842 --- README.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 32c00f5c1..2a5ecf78e 100644 --- a/README.rst +++ b/README.rst @@ -209,8 +209,8 @@ Don't remove or modify these separators. Use ``%generate(secret)%`` as the value of any environment variable to replace it with a cryptographically secure random value of 16 bytes. -``composer-scripts`` Configurator -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +``auto-scripts`` Configurator +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Registers scripts in the ``auto-scripts`` section of the ``composer.json`` file to execute them automatically when running ``composer install`` and ``composer @@ -222,7 +222,7 @@ script (``php-script`` for PHP scripts, ``script`` for any shell script and .. code-block:: json { - "composer-scripts": { + "auto-scripts": { "vendor/bin/security-checker security:check": "php-script", "make cache-warmup": "script", "assets:install --symlink --relative %PUBLIC_DIR%": "symfony-cmd" From bb96ce9b4fd011081ec2a0d136be2aa0a282d17e Mon Sep 17 00:00:00 2001 From: Yonel Ceruto Date: Mon, 3 Sep 2018 10:42:38 -0400 Subject: [PATCH 2/2] Update README.rst --- README.rst | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index 2a5ecf78e..5e855e830 100644 --- a/README.rst +++ b/README.rst @@ -222,10 +222,12 @@ script (``php-script`` for PHP scripts, ``script`` for any shell script and .. code-block:: json { - "auto-scripts": { - "vendor/bin/security-checker security:check": "php-script", - "make cache-warmup": "script", - "assets:install --symlink --relative %PUBLIC_DIR%": "symfony-cmd" + "scripts": { + "auto-scripts": { + "vendor/bin/security-checker security:check": "php-script", + "make cache-warmup": "script", + "assets:install --symlink --relative %PUBLIC_DIR%": "symfony-cmd" + } } }