From 93f9d3c1a7a928894d90d8548caade6377e70752 Mon Sep 17 00:00:00 2001 From: Laurent VOULLEMIER Date: Sat, 29 Feb 2020 20:22:54 +0100 Subject: [PATCH] Fix flex auto-registration --- README.md | 20 +++++++++++++++----- composer.json | 2 +- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4656bde..60b85e8 100644 --- a/README.md +++ b/README.md @@ -24,20 +24,30 @@ Installation ### Step 1: Download the GregwarCaptchaBundle Use composer require to download and install the package. -At the end of the installation you can automaticly create the configuration thanks to the Symfony recipe. +At the end of the installation, the bundle is automatically registered thanks to the Symfony recipe. ``` bash composer require gregwar/captcha-bundle ``` +If you don't use flex, register it manually: +```php + ['all' => true] +]; +``` + Configuration ============= -If you made the configuration automaticly trough the Symfony recipe, you should have the following config file `/config/packages/gregwar_captcha.yaml` - -Otherwise you can create it manually `/config/packages/gregwar_captcha.yaml` with the following default configuration: +If you need to customize the global bundle configuration, you can create a `/config/packages/gregwar_captcha.yaml` file with your configuration: ``` yaml - gregwar_captcha: ~ + gregwar_captcha: + width: 160 + height: 50 ``` Usage diff --git a/composer.json b/composer.json index d4351e7..2a7db20 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "gregwar/captcha-bundle", - "type": "captcha-bundle", + "type": "symfony-bundle", "description": "Captcha bundle", "keywords": ["symfony2", "symfony", "captcha", "bot", "visual", "code", "security", "spam"], "homepage": "https://github.com/Gregwar/CaptchaBundle",