Skip to content

Commit

Permalink
Revert "Change loadRoutesFrom to accept $attributes (#34866)" (#34909)
Browse files Browse the repository at this point in the history
This reverts commit e719250.
  • Loading branch information
taylorotwell committed Oct 20, 2020
1 parent 975bb83 commit 7fff6ea
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Illuminate/Support/ServiceProvider.php
Expand Up @@ -8,7 +8,6 @@
use Illuminate\Contracts\Foundation\CachesRoutes;
use Illuminate\Contracts\Support\DeferrableProvider;
use Illuminate\Database\Eloquent\Factory as ModelFactory;
use Illuminate\Support\Facades\Route;
use Illuminate\View\Compilers\BladeCompiler;

abstract class ServiceProvider
Expand Down Expand Up @@ -137,14 +136,12 @@ protected function mergeConfigFrom($path, $key)
* Load the given routes file if routes are not already cached.
*
* @param string $path
* @param array $attributes
*
* @return void
*/
protected function loadRoutesFrom($path, array $attributes = [])
protected function loadRoutesFrom($path)
{
if (! ($this->app instanceof CachesRoutes && $this->app->routesAreCached())) {
Route::group($attributes, $path);
require $path;
}
}

Expand Down

0 comments on commit 7fff6ea

Please sign in to comment.