From c16663626d3c9f19f124ee4a95f604af54ef5b12 Mon Sep 17 00:00:00 2001 From: tg666 Date: Wed, 20 Apr 2022 02:45:20 +0200 Subject: [PATCH] Updated the configuration section in README --- README.md | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7dc9052..a7bc613 100644 --- a/README.md +++ b/README.md @@ -20,8 +20,26 @@ $ composer require 68publishers/doctrine-bridge ```neon extensions: - # if you are using Nettrine: - doctrine_bridge: SixtyEightPublishers\DoctrineBridge\DI\DoctrineBridgeExtension + 68publishers.doctrine_bridge: SixtyEightPublishers\DoctrineBridge\DI\DoctrineBridgeExtension + +# Defaults: +68publishers.doctrine_bridge: + database_types_enabled: yes # Enable/disable registration of custom DBAL types + entity_mappings_enabled: yes # Enabled/disable registration of entity mappings + target_entities_enabled: yes # Enabled/disable resolving of target entities + migration_directories_enabled: yes # Enabled/disable registration of migrations for doctrine/migrations + + # Types or names of dependent services. Allowed inputs are `ServiceClassname`, `@ServiceClassname`, `@my_service` or simply `my_service` + services: + dbal_connection: Doctrine\DBAL\Connection + drivers: + # For drivers, you can use `null`. In this case, mappings for the drive will be omitted + chain: Doctrine\Persistence\Mapping\Driver\MappingDriverChain + annotation: Doctrine\ORM\Mapping\Driver\AnnotationDriver + xml: Doctrine\ORM\Mapping\Driver\XmlDriver + simplified_xml: Doctrine\ORM\Mapping\Driver\SimplifiedXmlDriver + attribute: Doctrine\ORM\Mapping\Driver\AttributeDriver + migrations_configuration: Doctrine\Migrations\Configuration\Configuration ``` ## Usage