add patch instructions to create overridable functions by automatic

This commit is contained in:
Daniel Seifert 2022-08-01 22:44:05 +02:00
parent f36b13970e
commit ba46258bbc
Signed by: DanielS
GPG Key ID: 6A513E13AEE66170
4 changed files with 17 additions and 4 deletions

View File

@ -33,9 +33,9 @@ use ReflectionException;
class DebugBarComponent extends BaseController class DebugBarComponent extends BaseController
{ {
/** @var StandardDebugBar */ /** @var StandardDebugBar */
public $debugBar; protected $debugBar;
/** @var JavascriptRenderer */ /** @var JavascriptRenderer */
public $debugBarRenderer; protected $debugBarRenderer;
/** /**
* Marking object as component * Marking object as component

View File

@ -23,7 +23,13 @@ Please enter the following section in the `composer.json` of your project:
"extra": { "extra": {
"ajgl-symlinks": { "ajgl-symlinks": {
"maximebf/debugbar": { "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"
} }
} }
} }

View File

@ -25,6 +25,12 @@ Bitte tragen Sie den folgenden Abschnitt in die `composer.json` Ihres Projektes
"maximebf/debugbar": { "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"
}
} }
} }
``` ```

View File

@ -28,7 +28,8 @@
"php": ">=7.3", "php": ">=7.3",
"oxid-esales/oxideshop-ce": "6.8 - 6.10", "oxid-esales/oxideshop-ce": "6.8 - 6.10",
"maximebf/debugbar": "^1.18", "maximebf/debugbar": "^1.18",
"ajgl/composer-symlinker": "^0.3.1" "ajgl/composer-symlinker": "^0.3.1",
"cweagans/composer-patches": "^1.7.2"
}, },
"require-dev": { "require-dev": {
"php": "^7.4", "php": "^7.4",