mirror of
https://github.com/flarum/framework.git
synced 2024-12-12 14:13:37 +08:00
parent
f820a62ec9
commit
8e7b056b84
|
@ -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…
Reference in New Issue
Block a user