1
0
mirror of https://github.com/flarum/core.git synced 2025-08-29 02:50:57 +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 trait InteractsWithLaravel
{ {
protected array $terminatingCallbacks = [];
/** /**
* @deprecated Not actually used/has no meaning in Flarum. * @deprecated Not actually used/has no meaning in Flarum.
*/ */
public function terminating($callback): static public function terminating($callback): static
{ {
$this->terminatingCallbacks[] = $callback;
return $this; return $this;
} }
@@ -29,13 +25,7 @@ trait InteractsWithLaravel
*/ */
public function terminate(): void public function terminate(): void
{ {
$index = 0; //
while ($index < count($this->terminatingCallbacks)) {
$this->call($this->terminatingCallbacks[$index]);
$index++;
}
} }
public function basePath($path = ''): string public function basePath($path = ''): string