Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5f942d1f6b |
@ -4,7 +4,7 @@
|
||||
"type": "flarum-extension",
|
||||
"license": "MIT",
|
||||
"require": {
|
||||
"flarum/core": "^1.0"
|
||||
"flarum/core": "^1.0|^2.0"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
||||
@ -8,7 +8,7 @@ use Illuminate\Contracts\Container\Container;
|
||||
|
||||
class RemoveEmailDriver implements ExtenderInterface
|
||||
{
|
||||
public function extend(Container $container, Extension $extension = null): void
|
||||
public function extend(Container $container, ?Extension $extension = null): void
|
||||
{
|
||||
$container->extend('flarum.notification.drivers', function (array $drivers) {
|
||||
unset($drivers['email']);
|
||||
|
||||
Reference in New Issue
Block a user