From 50a350db18a4d5fa665289a370c906d65ccac558 Mon Sep 17 00:00:00 2001 From: Laurens Laman Date: Fri, 14 Feb 2020 22:29:30 +0100 Subject: [PATCH 1/4] Add afterPublishing hook Add afterPublishing hook to restart workers for example the Symfony messenger worker --- src/Deployer/DefaultDeployer.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Deployer/DefaultDeployer.php b/src/Deployer/DefaultDeployer.php index fa28adc..60b3339 100644 --- a/src/Deployer/DefaultDeployer.php +++ b/src/Deployer/DefaultDeployer.php @@ -84,6 +84,8 @@ final public function deploy(): void $this->log('

Publishing app'); $this->doCreateSymlink(); $this->remoteSymLinkHasBeenCreated = true; + $this->log('Executing afterPublishing hook'); + $this->afterPublishing(); $this->doResetOpCache(); $this->doKeepReleases(); } @@ -134,6 +136,11 @@ public function beforePublishing() { $this->log('

Nothing to execute'); } + + pubflic function afterPublishing() + { + $this->log('

Nothing to execute'); + } public function beforeRollingBack() { From d80bb94bfe5c4af1a37bc52d85e0b43033d095cd Mon Sep 17 00:00:00 2001 From: Laurens Laman Date: Fri, 14 Feb 2020 22:34:18 +0100 Subject: [PATCH 2/4] =?UTF-8?q?fix=20typo=20=F0=9F=A4=A6=E2=80=8D=E2=99=82?= =?UTF-8?q?=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Deployer/DefaultDeployer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Deployer/DefaultDeployer.php b/src/Deployer/DefaultDeployer.php index 60b3339..02eec48 100644 --- a/src/Deployer/DefaultDeployer.php +++ b/src/Deployer/DefaultDeployer.php @@ -137,7 +137,7 @@ public function beforePublishing() $this->log('

Nothing to execute'); } - pubflic function afterPublishing() + public function afterPublishing() { $this->log('

Nothing to execute'); } From 4564320e7bf85a487aaeb99f3a74285feae66ba0 Mon Sep 17 00:00:00 2001 From: Laurens Laman Date: Fri, 14 Feb 2020 22:37:47 +0100 Subject: [PATCH 3/4] make code style fixer happy --- src/Deployer/DefaultDeployer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Deployer/DefaultDeployer.php b/src/Deployer/DefaultDeployer.php index 02eec48..aff2f28 100644 --- a/src/Deployer/DefaultDeployer.php +++ b/src/Deployer/DefaultDeployer.php @@ -136,7 +136,7 @@ public function beforePublishing() { $this->log('

Nothing to execute'); } - + public function afterPublishing() { $this->log('

Nothing to execute'); From fa617572099aadd3a6ce066a3f623304c22c1ed6 Mon Sep 17 00:00:00 2001 From: Laurens Laman Date: Mon, 5 Dec 2022 14:11:18 +0100 Subject: [PATCH 4/4] allow symfony 6 --- composer.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/composer.json b/composer.json index 68c4039..51a452f 100644 --- a/composer.json +++ b/composer.json @@ -13,14 +13,14 @@ ], "require": { "php": ">=7.2.0", - "symfony/console": "~2.3|~3.0|~4.0|~5.0", - "symfony/dependency-injection": "~2.3|~3.0|~4.0|~5.0", - "symfony/expression-language": "~2.4|~3.0|~4.0|~5.0", - "symfony/filesystem": "~2.3|~3.0|~4.0|~5.0", - "symfony/http-foundation": "~2.3|~3.0|~4.0|~5.0", - "symfony/http-kernel": "~2.3|~3.0|~4.0|~5.0", + "symfony/console": "~2.3|~3.0|~4.0|~5.0|~6.0", + "symfony/dependency-injection": "~2.3|~3.0|~4.0|~5.0|~6.0", + "symfony/expression-language": "~2.4|~3.0|~4.0|~5.0|~6.0", + "symfony/filesystem": "~2.3|~3.0|~4.0|~5.0|~6.0", + "symfony/http-foundation": "~2.3|~3.0|~4.0|~5.0|~6.0", + "symfony/http-kernel": "~2.3|~3.0|~4.0|~5.0|~6.0", "symfony/polyfill-mbstring": "^1.3", - "symfony/process": "~2.3|~3.0|~4.0|~5.0" + "symfony/process": "~2.3|~3.0|~4.0|~5.0|~6.0" }, "require-dev": { "phpunit/phpunit": "^6.1"