mirror of
https://github.com/flarum/core.git
synced 2025-08-28 02:20:14 +02:00
chore: unimplement terminat(e/ing)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user