From 932c311e27c9a79d3922b03b73761cfbab115354 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20FIDRY?= Date: Sun, 16 Jun 2024 19:15:52 +0200 Subject: [PATCH 1/3] refactor: Move the init file template to the `res` directory --- {src => res}/scoper.inc.php.tpl | 0 src/Console/Command/InitCommand.php | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename {src => res}/scoper.inc.php.tpl (100%) diff --git a/src/scoper.inc.php.tpl b/res/scoper.inc.php.tpl similarity index 100% rename from src/scoper.inc.php.tpl rename to res/scoper.inc.php.tpl diff --git a/src/Console/Command/InitCommand.php b/src/Console/Command/InitCommand.php index 63abda68..07b77e8b 100644 --- a/src/Console/Command/InitCommand.php +++ b/src/Console/Command/InitCommand.php @@ -33,7 +33,7 @@ final readonly class InitCommand implements Command { private const CONFIG_FILE_OPT = 'config'; - private const CONFIG_FILE_TEMPLATE = __DIR__.'/../../scoper.inc.php.tpl'; + private const CONFIG_FILE_TEMPLATE = __DIR__.'/../../../res/scoper.inc.php.tpl'; private const CONFIG_FILE_DEFAULT = 'scoper.inc.php'; public function __construct( From 9656d9545b8f1b0f47cec7733909e03e3194671c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20FIDRY?= Date: Sun, 16 Jun 2024 19:17:36 +0200 Subject: [PATCH 2/3] fix --- box.json.dist | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/box.json.dist b/box.json.dist index 8e94b174..dc090cee 100644 --- a/box.json.dist +++ b/box.json.dist @@ -12,10 +12,10 @@ "with this source code in the file LICENSE." ], - "files": [ - "src/scoper.inc.php.tpl" + "files-bing": [ + "res/scoper.inc.php.tpl", + "vendor-hotfix/.gitkeep", ], - "files-bin": ["vendor-hotfix/.gitkeep"], "git": "git_version_placeholder", "datetime": "release-date", From 799634e3248f875f3ff824bdb63afb584e7efa22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20FIDRY?= Date: Sun, 16 Jun 2024 19:19:18 +0200 Subject: [PATCH 3/3] fix typo --- box.json.dist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/box.json.dist b/box.json.dist index dc090cee..80103323 100644 --- a/box.json.dist +++ b/box.json.dist @@ -12,7 +12,7 @@ "with this source code in the file LICENSE." ], - "files-bing": [ + "files-bin": [ "res/scoper.inc.php.tpl", "vendor-hotfix/.gitkeep", ],