This repository has been archived by the owner on Feb 23, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
2 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ class LaravelServiceProvider extends ServiceProvider | |
* | ||
* @author Seven Du <[email protected]> | ||
*/ | ||
protected $defer = true; | ||
protected $defer = false; | ||
|
||
/** | ||
* Bootstrap the CORS service provider. | ||
|
@@ -57,7 +57,6 @@ public function register() | |
$this->mergeConfigFrom(__DIR__.'/../../../config/cors.php', 'cors'); | ||
|
||
// Register the CORS server instance alias. | ||
$this->app->alias(CorsInterface::class, CorsInterface::class); | ||
$this->app->alias(CorsInterface::class, Cors::class); | ||
|
||
// Register CORS servise singleton. | ||
|
@@ -68,18 +67,4 @@ public function register() | |
return new Cors($config); | ||
}); | ||
} | ||
|
||
/** | ||
* Get the services provided by the provider. | ||
* | ||
* @return array | ||
* | ||
* @author Seven Du <[email protected]> | ||
*/ | ||
public function providers() | ||
{ | ||
return [ | ||
CorsInterface::class, Cors::class, | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters