Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit 32399cb

Browse files
author
fd6130
committed
Add afterPublishing hook
1 parent a1797bd commit 32399cb

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/Deployer/DefaultDeployer.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ final public function deploy(): void
8484
$this->log('<h1>Publishing app</>');
8585
$this->doCreateSymlink();
8686
$this->remoteSymLinkHasBeenCreated = true;
87+
$this->log('Executing <hook>afterPublishing</> hook');
88+
$this->afterPublishing();
8789
$this->doResetOpCache();
8890
$this->doKeepReleases();
8991
}
@@ -135,6 +137,11 @@ public function beforePublishing()
135137
$this->log('<h3>Nothing to execute</>');
136138
}
137139

140+
public function afterPublishing()
141+
{
142+
$this->log('<h3>Nothing to execute</>');
143+
}
144+
138145
public function beforeRollingBack()
139146
{
140147
$this->log('<h3>Nothing to execute</>');

0 commit comments

Comments
 (0)