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