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:
@@ -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
|
||||||
|
Reference in New Issue
Block a user