1
0
mirror of https://github.com/flarum/core.git synced 2025-10-13 07:54:25 +02:00

Remove deprecated code from beta 16 (#2705)

This commit is contained in:
Alexander Skvortsov
2021-03-19 14:13:50 -04:00
committed by GitHub
parent 374189d48e
commit 908d087e00
40 changed files with 59 additions and 689 deletions

View File

@@ -10,7 +10,6 @@
namespace Flarum\Extension;
use Flarum\Database\Migrator;
use Flarum\Extend\Compat;
use Flarum\Extend\LifecycleInterface;
use Illuminate\Contracts\Container\Container;
use Illuminate\Contracts\Support\Arrayable;
@@ -135,13 +134,6 @@ class Extension implements Arrayable
public function extend(Container $container)
{
foreach ($this->getExtenders() as $extender) {
// If an extension has not yet switched to the new extend.php
// format, it might return a function (or more of them). We wrap
// these in a Compat extender to enjoy an unique interface.
if ($extender instanceof \Closure || is_string($extender)) {
$extender = new Compat($extender);
}
$extender->extend($container, $this);
}
}