1
0
mirror of https://github.com/flarum/core.git synced 2025-08-28 10:30:54 +02:00

chore: unimplement terminat(e/ing)

This commit is contained in:
Sami Mazouz
2023-08-11 09:34:21 +01:00
parent 47a0298958
commit 3e49aeb32c

View File

@@ -12,15 +12,11 @@ use Illuminate\Support\Str;
*/
trait InteractsWithLaravel
{
protected array $terminatingCallbacks = [];
/**
* @deprecated Not actually used/has no meaning in Flarum.
*/
public function terminating($callback): static
{
$this->terminatingCallbacks[] = $callback;
return $this;
}
@@ -29,13 +25,7 @@ trait InteractsWithLaravel
*/
public function terminate(): void
{
$index = 0;
while ($index < count($this->terminatingCallbacks)) {
$this->call($this->terminatingCallbacks[$index]);
$index++;
}
//
}
public function basePath($path = ''): string