mirror of
https://github.com/flarum/framework.git
synced 2025-02-22 13:08:40 +08:00
parent
88372640aa
commit
7404debb21
@ -53,7 +53,7 @@ class ExtensionManager
|
|||||||
|
|
||||||
$enabled[] = $extension;
|
$enabled[] = $extension;
|
||||||
|
|
||||||
$class = $this->load($extension);
|
$this->load($extension);
|
||||||
|
|
||||||
$this->migrate($extension);
|
$this->migrate($extension);
|
||||||
|
|
||||||
@ -130,10 +130,8 @@ class ExtensionManager
|
|||||||
if (file_exists($file = $this->getExtensionsDir() . '/' . $extension . '/bootstrap.php')) {
|
if (file_exists($file = $this->getExtensionsDir() . '/' . $extension . '/bootstrap.php')) {
|
||||||
$className = require $file;
|
$className = require $file;
|
||||||
|
|
||||||
$class = new $className($this->app);
|
$ext = new $className($this->app);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $class;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getExtensionsDir()
|
protected function getExtensionsDir()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user