From ba46258bbc82a0edae2c5fd677e64fe89660afeb Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Mon, 1 Aug 2022 22:44:05 +0200 Subject: [PATCH] add patch instructions to create overridable functions by automatic --- Application/Component/DebugBarComponent.php | 4 ++-- README.en.md | 8 +++++++- README.md | 6 ++++++ composer.json | 3 ++- 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/Application/Component/DebugBarComponent.php b/Application/Component/DebugBarComponent.php index 733b5e3..8e24095 100644 --- a/Application/Component/DebugBarComponent.php +++ b/Application/Component/DebugBarComponent.php @@ -33,9 +33,9 @@ use ReflectionException; class DebugBarComponent extends BaseController { /** @var StandardDebugBar */ - public $debugBar; + protected $debugBar; /** @var JavascriptRenderer */ - public $debugBarRenderer; + protected $debugBarRenderer; /** * Marking object as component diff --git a/README.en.md b/README.en.md index 9316ba3..c850c11 100644 --- a/README.en.md +++ b/README.en.md @@ -23,7 +23,13 @@ Please enter the following section in the `composer.json` of your project: "extra": { "ajgl-symlinks": { "maximebf/debugbar": { - "src/DebugBar/Resources": { "source/out/debugbar". + "src/DebugBar/Resources": "source/out/debugbar" + } + }, + "enable-patching": "true", + "patches": { + "oxid-esales/oxideshop-ce": { + "Add overridable functions for advanced profiling in Debug Bar": "https://git.d3data.de/D3Public/DebugBar/raw/branch/patches/overridablefunctions.patch" } } } diff --git a/README.md b/README.md index c001259..e29fd2c 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,12 @@ Bitte tragen Sie den folgenden Abschnitt in die `composer.json` Ihres Projektes "maximebf/debugbar": { "src/DebugBar/Resources": "source/out/debugbar" } + }, + "enable-patching": "true", + "patches": { + "oxid-esales/oxideshop-ce": { + "Add overridable functions for advanced profiling in Debug Bar": "https://git.d3data.de/D3Public/DebugBar/raw/branch/patches/overridablefunctions.patch" + } } } ``` diff --git a/composer.json b/composer.json index 7fd42e8..a7e0d6c 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,8 @@ "php": ">=7.3", "oxid-esales/oxideshop-ce": "6.8 - 6.10", "maximebf/debugbar": "^1.18", - "ajgl/composer-symlinker": "^0.3.1" + "ajgl/composer-symlinker": "^0.3.1", + "cweagans/composer-patches": "^1.7.2" }, "require-dev": { "php": "^7.4",