From 73446acbb1e84c1adf471b65fdf4d0499b67c436 Mon Sep 17 00:00:00 2001 From: Igor Nikolaev Date: Tue, 14 Jan 2020 13:59:53 +0300 Subject: [PATCH] Add override doc. --- Resources/doc/override.md | 41 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Resources/doc/override.md diff --git a/Resources/doc/override.md b/Resources/doc/override.md new file mode 100644 index 0000000..bc0af96 --- /dev/null +++ b/Resources/doc/override.md @@ -0,0 +1,41 @@ +Override +======== + +## Configuration + +```yaml +darvin_utils: + override: + DarvinECommerceBundle: + order: + entities: + - Order\Order + templates: + - admin/order + - order + product: + entities: + - Product + templates: + - product +``` + +## Usage + +### Override all functionality + +```shell script +$ bin/console darvin:utils:override product +``` + +### Override specific functionality + +```shell script +$ bin/console darvin:utils:override product admin +``` + +### Specify bundle if subject name is ambiguous + +```shell script +$ bin/console darvin:utils:override product -b DarvinECommerceBundle +```